Always watch where you step before exiting a car or before stepping outside your home.
Wear protective footwear.
Don't blindly reach into a bush or a hole in the ground in search of an errant golf ball.
Stay on marked trails when hiking.
Don't play loud music through ear buds while hiking, which could prevent you from hearing a warning rattle.
Rattlesnakes are attracted to their vital resources including food, water, and a safe place to live. Rodents should be eliminated from around your home. Start by filling all the holes that you find. If possible, you can use snap traps and live traps but using poison traps might kill the wrong animals.