No minor under 18 years of age shall climb upon or cling to any street car or railroad car of any kind while the same is in motion, under a penalty of from $2 to $10.

R. M. C, sec. 1437.