Lawful resistance to the commission of a public offense may be made by the party about to be injured, or by others.