WE have a railway running right behind the back gardens here
And Ive never hard of a cat coming to grief on it - OH has lived here for over 50 years and neither has he!! Or foxes for that matter .... we do have an awful lot of wildlife on the embankments nd they all seem to have learned that they are to avoid trains as they come through, but other than that are OK.
We have had a feral colony at the back for years, too, living on the embankment. Now - thanks to CP and neutering , there are only 2 left - both of whom we feed
But the road at the front ....
Railway here is safer than the road!!