Lawful resistance to the commission of a public offense may be made:
1. By the party about to be injured;
2. By other parties.
(Enacted 1872.)