If any person maliciously injure, destroy, molest, or remove any switchlamp, flag or other signal used by any railroad, or any line, wire, post, lamp or any other structure or mechanism used in connection with any signal on a railroad, or destroys or in any manner interferes with the proper working of any signal on a railroad, whereby the life of any person is or may be put in peril he shall be guilty of a Class 4 felony; and in the event of the death of such person resulting from such malicious injuring, destroying or removing, 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 such act be done unlawfully but not maliciously the offender shall be guilty of a Class 1 misdemeanor, provided that in the event of the death of any such person resulting from such unlawful injuring, destroying or removing, the person so offending shall be deemed guilty of involuntary manslaughter.
Va. Code § 18.2-155