If any person maliciously obstruct, remove or injure any part of a canal, railroad or urban, suburban or interurban electric railway, or any lines of any electric power company, or any bridge or fixture thereof, or maliciously obstruct, tamper with, injure or remove any machinery, engine, car, trolley, supply or return wires or any other work thereof, or maliciously open, close, displace, tamper with or injure any switch, switch point, switch lever, signal lever or signal of any such company, whereby the life of any person on such canal, railroad, urban, suburban or interurban electric railway, is put in peril, he shall be guilty of a Class 4 felony; and, in the event of the death of any such person resulting from such malicious act, the person so offending shall be deemed guilty of murder, the degree to be determined by the jury or the court trying the case without a jury.
If any such act be committed unlawfully, but not maliciously, the person so offending shall be guilty of a Class 6 felony; and in the event of the death of any such person resulting from such unlawful act, the person so offending shall be deemed guilty of involuntary manslaughter.
Va. Code § 18.2-153