Periodically there are still car/truck/pedestrian vs. train accidents in the news despite all the signs, warning lights, bells and gates present prior to crossing train tracks. Impatient drivers (or for other reasons) make the foolish mistake of going around gates in order to probably save time. Some crossings may have the lights and bells but are without gates. Therefore, carefully look left and right. As for pedestrians, intoxication may be but one factor for being present on railroad tracks and struck.
Tractor trailers, tankers, and flat beds crossing a train track have much greater length to move across and now many tractor trailers are tandems pulling two trailers. School buses are required to stop before crossing railroad tracks.
One final note, do not stop on railroad tracks. Always keep the momentum to make your way through without having to stop as a result of traffic slowing or stopping in front of you. If stopping is necessary stop before going onto the tracks and proceed when it is clear to make it thorough. Keep your vehicle in good running condition, no stalling on the tracks.