If any person shall leave any child under the age of eight years locked or otherwise confined in any dwelling, building or enclosure, and go away from such dwelling, building or enclosure without leaving some person of the age of discretion in charge of the same, so as to expose the child to danger by fire, the person so offending shall be guilty of a Class 1 misdemeanor.
N.C. Gen. Stat. § 14-318