Even in farm country, if the neighboring farm’s animals keep getting out on your land because your neighbor won’t keep them corralled, it is considered reasonable to sue them to keep their chattel off your property.
I once saw 20 cows ambling through front yards in a subdivision grazing in flower beds and lawn grass. They broke out of a farmer’s adjoining pasture.