In the fantastic ScFi series "The expanse" those who vandalise station infrastructure (like air or water) get spaced out of the airlock.
No trial, no jury.
I'm a stickler for due process...
But in case of train vandalism, we should just throw them out while the train is in motion...
Joke not joke.