Any person who shall ride on any engine, tender, car or train of any railroad company, without authority or permission of the proper officers or employees of the company, or of the persons in charge of such engine, tender, car or train, shall, on conviction, be fined not less than fifty dollars ($50.00) nor more than one hundred dollars ($100.00) or be imprisoned not more than thirty (30) days, or both.