Train tracks are in finite, specific, static locations; they stay where they are; they don't follow you around or sneak up behind you...
I fail to see how people, who are on foot, get hit by trains?
Recently, in a small town close to the Canadian/USA border, a woman got killed, by a passing Amtrak train; apparently, she was out jogging with her husband.
The woman had numerous "safe" alternate surfaces(routes) available, to choose from; but, for some reason - she felt a need to compete with the trains... on a, well known, active rail route.
Supposedly, the woman was hit at a pedestrian crossing; but, if you were paying attention... you would have easily seen the approaching train. Visitors, to the area, have to cross BNSF tracks, to get to the beach; and many thousands of people have "safely" done so... over the years.
BTW, I know the area well, there's plenty of warnings; and, it's not difficult to cross the tracks, safely - I've done it many times... over the years.
Rick