If any horse, cattle, goat, sheep or hog trespasses on any grounds enclosed with lawful fence, the owner of the animal so trespassing shall pay such damages as shall be awarded by the fence-viewers. Any person having unruly horses, goats, sheep, hogs or cattle, which break through lawful fences, shall, after notice thereof, be liable for double damages for any trespass committed by such animal, after such notice, to be awarded by the fence-viewers.