The red light flashing is a warning that a train is due to pass through the railroad crossing, and a vehicle driver 'must' stop and not attempt to cross. Any sensible driver would indeed stop and wait for the train to pass and the red light go off, before going forward to cross the railway crossing (safely).There are many videos on the internet showing idiots either just avoiding being killed, or actually being killed as the train passes through the crossing at high speed. In each case, it was because they ignored or took a chance and ignored the red flashing warning light.
you must look both ways left and right
50 feet
15 and 50 feet
You must stop within 50 feet but no closer than 15 feet of the railroad crossing. Never stop on railroad tracks or go when the gate is down.
you keep speeding
The Pennsylvania's Driver's Manual states that driver's cannot park within 50 feet of the nearest rail of a railroad crossing.
A railroad crossing is where the railway tracks cross over a road. It is where a driver of a vehicle must take heed of warning lights that a train is approaching, and the driver must wait until it is safe to proceed over the crossing. In Britain, all railway crossings are either gated or have a barrier, both being automated.
Buses and vehicles transporting hazardous materials.
No, you must always be careful crossing any railroad tracks. Remember that a train cannot stop easily and cannot swerve to avoid you, so you have to stay out of its way.
The speed limit is 15 MPH when a person comes with in 100 feet of a railroad crossing and can not see the tracks for 400 feet in both directions. If there is a flag person at a railroad crossing the car must stop 15 to 50 feet from railroad.
If there are pedestrians still crossing when the amber light is flashing, the motorist must remain stationary. If there are no pedestrians crossing, the motorist can proceed. (But, be careful of pedestrians taking a chance and attempting to cross when the amber light is flashing - it is best to use caution until the light turns green.)
When carrying "Haz-mat" (hazard material) cargo