Is it serious to beat a drunk to death to protect himself? To what extent is self-protection not illegal?

Taking defensive actions against violent crimes such as assault, murder, robbery, rape, kidnapping, etc., which seriously endanger personal safety, and causing casualties of illegal infringers, is not excessive defense and does not bear criminal responsibility.

In this case, if an alcoholic continues to use violence against his daughter, such as raping her, and the father kills that person, it is considered as self-defense and does not bear criminal responsibility. This case later looked like intentional injury.