(5) No constable or other person shall be guilty of an offence under section 9(1) (b) or (c) or (2) or 10(1) (b) or (c) above in respect of anything done by him in the course of acting in connection with the enforcement, or intended enforcement, of any provision of this Act or of any other enactment relating to terrorism or the proceeds or resources of terrorism.