Thanks for asking rather than just killing the snake. Gopher snakes will try to imitate rattlesnakes when they are frightened. If there are dry leaves around the tail shaking can resemble a rattlesnake rattle.
Please try not to hate snakes. As others have pointed out snakes eat rodents that carry diseases. Where I work the rattlesnakes are removed from the area (not killed - a fairly easy, safe, process if you know what you are doing) . Now, the ground squirrels are a big problem. Too many ground squirrels mean that plague could be an issue (the same one that killed 1/3 of Europe - before antibotics). I'd rather watch out for snakes (which you should be doing in Wrightwood anyway when it is warm) than worry about diseases.
If there is a snake that anyone thinks is in the wrong place. Let me know. I will try to come rescue it and get it to a safe place.