The first guy seemed to know exactly what he was doing, and how to do it safely. Still illegal (trespassing), but no one and nothing is in danger, except maybe the camera.
The railroad should send the second one to the police, and let them track the suspect down, for prosecution. Or maybe commitment to an institution for the mentally defective. Never mind his life, he could have derailed the train if it caught him just wrong.