every so often at stations you will see pedestrians decide to go down onto the rails.. I think there should be an 'invisible wall' or something to contain pedestrians in the same way players have boundaries so we can't go past our restricted areas (such as car parks and station exits). this would also help with realism, as it's very rare in real life to see something like this and it's also extremely unsafe (screenshots attached)
Or you could just run them down and have them explode in a fountain of blood and meat like in RDR2...
The reality is, the passenger AI programming is rather wonky and they'll do strange things- including sometimes shoot up into the air like rockets!