(b) Any person commits the offense of cruelty to children in the first degree when such person maliciously causes a child under the age of 18 cruel or excessive physical or mental pain.
(c) Any person commits the offense of cruelty to children in the second degree when such person with criminal negligence causes a child under the age of 18 cruel or excessive physical or mental pain.
(d) Any person commits the offense of cruelty to children in the third degree when:
(1) Such person, who is the primary aggressor, intentionally allows a child under the age of 18 to witness the commission of a forcible felony, battery, or family violence battery; or (2) Such person, who is the primary aggressor, having knowledge that a child under the age of 18 is present and sees or hears the act, commits a forcible felony, battery, or family violence battery. (e)(1) A person convicted of the offense of cruelty to children in the first degree as provided in this Code section shall be punished by imprisonment for not less than five nor more than 20 years.
(2) A person convicted of the offense of cruelty to children in the second degree shall be punished by imprisonment for not less than one nor more than ten years.
(3) A person convicted of the offense of cruelty to children in the third degree shall be punished as for a misdemeanor upon the first or second conviction. Upon conviction of a third or subsequent offense of cruelty to children in the third degree, the defendant shall be guilty of a felony and shall be sentenced to a fine not less than $1,000.00 nor more than $5,000.00 or imprisonment for not less than one year nor