This might sound harsh, but I can't help feeling that part of the problem lies with the low esteem that railways are held in these days.
These kids don't seem to realise that a railway can be a dangerous place for those with little experience of it. And they don't get the experience anymore, thanks to the fascination with the motor car.