Every person who maliciously does either of the following is punishable by imprisonment pursuant to subdivision (h) of Section 1170, or imprisonment in a county jail not exceeding one year:
(a)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.