No one shall be punished for an act designated by law as an offense if the harmful or dangerous event on which the existence of the offense depends was not a consequence of his own act or omission.
Failing to prevent an event which one has a legal obligation to prevent shall be equivalent to causing it.