No dog may be declared vicious if an injury or damage is sustained to any person who was committing a willful trespass or other tort upon premises occupied by the owner or keeper of the dog, or who was teasing, tormenting, abusing, or assaulting the dog or was committing or attempting to commit a crime.
SDCL 40-34-15