Any act or omission declared criminal and punishable in different ways by different provisions of law shall be punished only under one of such provisions, and a conviction or acquittal under any one shall bar a prosecution for the same act or omission under any other provision.
Ala. Code § 15-3-8 (1975)