It shall be unlawful for any owner of a dog or cat to allow said animal to bite, scratch, chase, snap or attack pedestrians, bicyclists, vehicles; or allow said animal to be a nuisance with the exception of said animal being in defense of property or person.