Article 15 of the criminal law should foresee the possible consequences of one's actions that endanger society. If a person fails to foresee the consequences because of negligence, or thinks that such consequences can be avoided because of foresight, it is a negligent crime.
Negligent crime, only those who are prescribed by law bear criminal responsibility.
Article 16 Although an act objectively causes damage, it is not caused by intention or negligence, but by irresistible or unforeseeable reasons, and does not constitute a crime.
Article 20 In order to protect the state, public interests, the person, property and other rights of oneself or others from ongoing unlawful infringement, stopping the unlawful infringement and causing damage to the unlawful infringer, it is justifiable defense and does not bear criminal responsibility.
Article 21. In order to protect the state, public interests, the person, property and other rights of oneself or others from the ongoing danger, those who have to take emergency measures to avoid danger shall not bear criminal responsibility.
To sum up, there are three situations. One is unintentional (such as negligence, negligence and force majeure); Second, self-defense; Third, emergency hedging. The latter two "self-help" behaviors are taken to safeguard the legitimate rights and interests of the state, the collective, the public, oneself or others. If it does not exceed the limit, it will not bear criminal responsibility.