Does not apply to a course of conduct if the person who pursued it shows: (a)that it was pursued for the purpose of preventing or detecting crime,
(b)that it was pursued under any enactment or rule of law or to comply with any condition or requirement imposed by any person under any enactment, or