(4)It shall be a defence to any action of harassment to show that the course of conduct complained of—(a)was authorised by, under or by virtue of any enactment or rule of law;(b)was pursued for the purpose of preventing or detecting crime; or(c)was, in the particular circumstances, reasonable