I stumbled across this video on YouTube. It was produced by Britain's Network Rail and shows three railway crossing near misses.
The last one is especially scary as the person was so close to the speeding train that they lost their shoe. They are VERY lucky. There is no need to "race the train". A few seconds or minutes of waiting is a small price to pay for your life.