My last rattler encounter was on a steep mountain trail. It wasn't hiking so much as climbing using hands and feet at that point.

My head came level with a granite shelf that had an occupant, eye level and way too close.

I believe I tapped the Force and teleported about five feet back.