Every person who maliciously, either:
1.Removes, displaces, injures, or destroys any part of any railroad, whether for steam or horse cars, or any track of any railroad, or any branch or branchway, switch, turnout, bridge, viaduct, culvert, embankment, station house, or other structure or fixture, or any part thereof, attached to or connected with any railroad; or,
2.Places any obstruction upon the rails or track of any railroad, or of any switch, branch, branchway, or turnout connected with any railroad;
Is punishable by imprisonment in the state prison, or in the county jail not exceeding one year.