You should never park a vehicle:

Locations where it is prohibited to park include within 50 feet of a railroad crossing; within 20 feet of a crosswalk at an intersection; and within 30 feet of a signal light, stop sign, or flashing beacon on the side of the roadway.
DMV Writen Test