If any person, while on duty in charge of a locomotive-engine running or standing upon any railroad, or if any conductor in charge of a car or train on any railroad, shall be intoxicated, he shall, on conviction, be imprisoned in the penitentiary not less than one year nor more than fifteen years.