If any person wantonly, maliciously, or mischievously discharges firearms or throws stones, sticks, clubs, or other missiles at, into, or against any locomotive, railroad car, or street car on any railroad, he or she shall be guilty of a misdemeanor. On conviction the person shall be punished by a fine of not less than twenty-five dollars ($25.00) nor more than two hundred fifty dollars ($250) or by imprisonment in the county jail for not more than three (3) months, or by both a fine and imprisonment.