Any person who shall cause destruction by means of explosion, discharge of electric current, inundation, sinking or stranding of a vessel, intentional damaging of the engine of said vessel, taking up the rails from a railway track, maliciously changing railway signals for the safety of moving trains, destroying telegraph wires and telegraph posts, or those of any other system, and, in general, by using any other agency or means of destruction as effective as those above enumerated, shall be punished by reclusion temporal if the commission has endangered the safety of any person; otherwise, the penalty of prision mayor shall be imposed.