It shall be an affirmative defense to a charge of violating Sections 13A-12-200.2 and 13A-12-200.3 that the act charged was done for a bona fide medical, scientific, educational, legislative, judicial, or law enforcement purpose.
Ala. Code § 13A-12-200.4 (1975)