It shall be unlawful for any person or persons owning or in the possession of any bull of the age of more than six months, any stallion of the age of more than eighteen months, or buck or boar over five months of age, to suffer or permit such animal or animals to go, or range, or run at large on any lands or premises without the consent of the person entitled to the possession of such land or premises.
No right of action shall accrue under this section to any person who, being liable to contribute to the erection or repair of a division fence as required by the town law, shall neglect or refuse to make and maintain his proportion of such fence, or shall permit the same to be out of repair, for damages done by any animal described in this section coming, by reason of such defective fence, from adjoining lands where such animal was lawfully kept.
N.Y. Agric. and Mkts.Law § 95