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. Whoever violates this section is guilty of a minor misdemeanor.
R.C. § 4999.02