Back away. Rattlesnakes aren’t aggressive to people unless they feel threatened. They are shy of larger animals and people. If they sense you they'll try to escape so make sure you give them room to do so. Don't try to scare them or push them with a stick. To warn them of your arrival you can try stomping from a distance so they feel your vibrations and leave.