I don't know what "nation" you are posting from, but I can tell you that the above is not the standard for use of lethal force in the United States. In general, there is no US standard for the use of force, as each State has its own laws.
In Colorado (where I live), part of the relevant statutes reads:
"...any occupant of a dwelling is justified in using any degree of physical force, including deadly physical force, against another person when that other person has made an unlawful entry into the dwelling, and when the occupant has a reasonable belief that such other person has committed a crime in the dwelling in addition to the uninvited entry...."
There is no legal "duty to retreat". There is no legal duty to find an alternative solution. There is no legal duty to use a lesser degree of force.