If any person shall wantonly or negligently obstruct or injure any railroad, on conviction, he shall be fined not less than five hundred dollars ($500.00) nor more than two thousand dollars ($2,000.00), or imprisoned not longer than twelve (12) months in the county jail, or both.