In self-defense

(Law) in protection of self, - it being permitted in law to a party on whom a grave wrong is attempted to resist the wrong, even at the peril of the life of the assailiant.- Wharton.

See also: Self-defense