Statistically, most people who are bitten by snakes of any kind are bitten because they are trying either to kill or to capture them.
A rattlesnake does not want to bite you. Only one in a million or fewer than that would actually come toward you to bite unless they feel threatened by you.
There is nothing to learn in terms of avoiding snakes, really.
It boils down to the same thing you apply to any wild animal:
Leave them alone, they will leave you alone.
I have spent a very great deal of time in rattlesnake country, in different areas. I have handled them in various ways for various reasons. I know what they are like and while I don't trust one, or any other venomous creature, I like them a lot. They are beautiful, fascinating, and a vital and necessary part of the ecosystem they live in.
See one, just go the other direction, or wait calmly while it crosses the path ahead of you, and all is well.
Also.............
Wear boots if in tall grass. Wave a long stick in the grass ahead of you so the snake knows you are coming and either gets out of the way or rattles. Don't put your hand under a rock or into a crevice where you cannot see where your hand is going. Don't go into a dark cave. In other words, use common sense and the chances of your being bitten are very slim indeed. Do not attempt to kill or catch one unless you really know what you are doing and have a lot of experience with doing that, and have a very good reason for doing it....not just because it is there.
NO animal of any genus should be killed just because it is what it is. Not ever.
If one is in your yard or area and you absolutely have to remove it, use a hose, or even a spray bottle, and spray them with water. Not hard, you don't want to hurt them. Not hot water, again, you don't want to hurt them. The snake will move away from the water and you can actually chase it out of your area that way. I do this with very good results if I find one in my fenced in dog yard.
Rattlesnakes are not stupid. They need their venom to kill things they are going to eat. They know they can't eat you so they would much rather avoid you than use up their venom to bite you instead of something they can eat.
Please.....Live and let live.