The train driver saw him about 300m away and attempted to alert him by blasting his horn. But he continued to walk backwards and stepped into the path of the train.
The train had five passenger carriages and came to a stop as soon as possible, police said.
Witnesses had confirmed the bells and level crossing 20m away were working.