Upon the trial, the defendant may prove in mitigation or justification, as the jury may determine, that, at the time of the killing, disabling, disfiguring, destruction or injury, the animal killed, disabled, disfigured, destroyed or injured was trespassing and had within six months previously thereto trespassed upon a growing crop, inclosed by a lawful fence or while such animal was running at large in violation of law. No conviction must be had, if it is shown that, before the commencement of the prosecution, compensation for the injury was made or tendered to the owner.
Ala. Code § 3-1-11 (1975)