Christ her heart must have stopped.
I live in Germany, in a small village with the railway running straight through. There are no fences on the line at any point, except three level crossings within the village.
It panics the life out of me to think the dog might get out one day and wander onto the line, never mind a child. A man walked in front of one of the trains about 4 weeks ago.
I think if previously the child couldn't have got through, she was NBU to think that the fence would be protection enough. She won't make that mistake again...