this is attempted murder, and should be treated
as such in a NON-bananarepublic.
How about in the US?
Yes, 2 magnets and a piece of wire will trip Railroad sensors.
The system is designed to track trains, prevent collisions, and protect public and the operators of the Train.