The terms "dangerous dog" and "vicious dog" as used in this division shall not include the following: (1) Actions that occur while a dog is being used by a law enforcement or military officer to carry out the law enforcement or military officer's official duties: and (2) A dog that inflicts an injury within the meaning of this division if the injury was sustained by a person who, at the time, was committing a willful trespass or other tort, was tormenting, abusing or assaulting the dog or had in the past been observed or reported to have tormented, abused or assaulted the dog, or was committing or attempting to commit a crime, including, but not limited to, an offense under O.C.G.A. tit. 16, ch. 5.