(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 misdemeanor of the fourth degree. If violation of this misdemeanor causes physical harm to any person, whoever violates this section is guilty of a misdemeanor of the third degree. (ORC 4999.04)