25. (1) Every one who is required or authorized by law to do anything in the administration or enforcement of the law
(2) Where a person is required or authorized by law to execute a process or to carry out a sentence, that person or any person who assists him is, if that person acts in good faith, justified in executing the process or in carrying out the sentence notwithstanding that the process or sentence is defective or that it was issued or imposed without jurisdiction or in excess of jurisdiction.
(3) Subject to subsection (4), a person is not justified for he purposes of subsection (1) in using force that is intended or is likely to cause death or grievous bodily harm unless he believes on reasonable grounds that it is necessary for the purpose of preserving himself or any one under his protection from death or grievous bodily harm.
(4) A peace officer who is proceeding lawfully to arrest, with or without warrant, any person for an offence for which that person may be arrested without warrant, and every one lawfully assisting the peace officer, is justified, if the person to be arrested takes flight to avoid arrest, in using as much force as is necessary to prevent the escape by flight, unless the escape can be prevented by reasonable means in a less violent manner. [R.S., c.C-34, s.25.]