(1) There is no right of private defence,–
(a) against an act which does not reasonably cause the apprehension of death or of grievous hurt, if done, or attempted to be done, by a public servant acting in good faith under colour of his office, though that act, may not be strictly justifiable by law;
(b) against an act which does not reasonably cause the apprehension of death or of grievous hurt, if done, or attempted to be done, by the direction of a public servant acting in good faith under colour of his office, though that direction may not be strictly justifiable by law; (c) in cases in which there is time to have recourse to the protection of the public authorities.
https://www.leadindia.law/bns-section-37-acts-against-which-there-is-no-right-of-private-defence