B. It is unlawful for the owner or person having custody of any dog or other animal to permit, either willfully or through failure to exercise due care or control, any such dog or animal to commit any nuisance and to allow such nuisance to thereafter remain upon any public or private property not owned or possessed by the owner or person in control of said animal, provided that the person who owns