Social Order Maintenance Act Article 13

Any behaviors, out of necessity to avert an imminent danger against oneself or others shall not be punishable.
中文原文 社會秩序維護法第13條
因避免自己或他人之緊急危難,而出於不得已之行為,不罰。

English translation for reference only; the Chinese text prevails. Not legal advice.