This kind of accident is so common I remember the government commissioning a series of funny PSA ads that played on national TV showing people acting recklessly at railway crossings, getting killed and then expressing their regrets from beyond the grave.
A large part of this is due to population density (or trip density) around the crossing. If you've got 1000x the number of trips on a crossing, a 100x safer crossing is still 10x more likely to result in a colission. Fill in your own estimates, as my numbers are clearly made up. Also, guidelines require more signalling in built up / dense areas, and at intersections with a history of colissions.
Additionally, if you have a colission at an unguarded intersection, the response is often to consider a guard, and if it happens again, the story is 'senseless officials refuse to put in guard' rather than 'sensless person disobeys guard and is injured/causes confusion and delay'
Personnally, I belong to the school of « remove them all, whatever the costs ». A little extreme, but €&@% I hate these things.
Edit: Clarified that it is written test.
The things is, I don't remember the written test I took having any content at all about railroad crossings.
Physics tells us that we should accelerate to spend the least amount of time in the danger zone (rail bed). Since the velocities are orthogonal, it doesn't matter if you are hit by a train when your car is going 55 or 5 MPH (probably, unless trees in the resulting vector of your now pulped car).
It never made any sense to me to see school busses stopping at a grade crossing, then taking an extraordinarily long time to cross those tracks. What happens if the engine fails while on those tracks and a high speed train appears.
No, my vote is to make sure you have a clear view of the tracks in both directions and punch it. Less probability of interacting with a train.
I also find it amusing that all of the stories regarding train-car interactions seem to occur at crossings with modern signaling devices, rather than "at your own discretion" crossings in the middle of nowhere. This leads me to suspect that the typical human has been conditioned to treat any signalized intersection transition as a "beat the yellow" event, but in the case of a rail crossing the brutal physics equations seem to be conveniently ignored.
Perhaps there needs to be a day in driver's education courses where everyone has to review just how heavy a freight train is and how much kinetic energy must be dissipated in order for it to come to a complete stop. Maybe make them ride at the front of a train to experience how painfully long an emergency braking maneuver takes to complete.