Like mentioned above due diligence is #1.
keeping the critters down, and if your lucky enough to have king, bull or gopher snakes thats one of the best deterrents. I lived on 11 acre's in a rural farming community and had 3 known kings and a honorary bull snake (he took out a passing through gopher snake though) never once did I see a rattler.
The wife got tired of living so far away from everything so we ended up moving inland and for better schools for our children. seen 1 at the new place last summer my oldest almost fell victim even after me yelling at him. thankfully it was raining and I think the snakes reflexes were slowed he just started lifting his head as I yanked my boy by the arm back inside.
A suppressed 22 with remington subsonic hp ammo is good medicine
.410 or a shovel is what I used most though.
Just be warned if they have a green hue to them it's likely a mojave and are they some feisty sob's! never again will I dance with one of those with a shovel. scared the shit out of me. lol