(a) No person shall climb, jump, step or stand upon or cling or attach himself to a locomotive, engine or car upon the track of a railroad, unless in compliance with law or by permission under the rules of the corporation managing such railroad.
(b) Whoever violates this section is guilty of a minor misdemeanor.
(ORC 4999.02)