A dog shall not be deemed to be a Potentially Dangerous Dog or a Dangerous Dop solely because it bites or attacks:
1. Anyone assaulting its owner. This shall not include any police officer attempting to subdue or effect the arrest of a suspect.
2. Any person who is in the act of tormenting or abusing the dog.
3. Any unrestrained animal which attacks the dog or its young while it is restrained in compliance with this chapter.
4. Anyone entering the owner's property to commit robbery, burglary, assault, or any other crime.
5. Simple trespass by a person onto private property shall not be considered provocation for any attack.
6. While performing work by a governmental law enforcement agency.
7. While seriously injured or incapacitated.