Prevention of Offenses and Safety Measures on the Railway