Never stop on or near a railroad track.
From the web:
Signs warn you that you are approaching a railroad track. Watch and listen to the trains in both directions. Be prepared to stand, if necessary. You should be ready for the train to come anytime, day or night. Never stop on or near a railroad track. Usually when the train driver sees you, it is too late for the train to stop.