In fact, the legal system of any country has a clause on the innocence of murder, but specific issues need to be analyzed in detail.
For example, Article 20 of my country's "Criminal Law" stipulates that in order to protect national interests, public interests, the person, property and other rights of oneself or others from ongoing illegal infringement, stop the illegal infringement, Any damage caused to an illegal intruder is considered legitimate defense and shall not bear criminal responsibility.
Taking defensive actions against violent crimes such as assault, murder, robbery, rape, kidnapping, etc. that seriously endanger personal safety, resulting in casualties or casualties of unlawful intruders, does not constitute excessive defense, but it still constitutes legitimate defense. criminal responsibility.