The person who shall violate the provisions of Section 77-16-11 N.M. Stat. Ann. shall be obliged at the time of his punishment, to indemnify the owner of any fence, for the damage that has followed therefrom, for the repairing of his fence, valued according to the gravity of the offense.