It shall be unlawful to operate or maintain outside the limits of any incorporated town or city within the State a dance hall within one fourth of a mile of a rural church with an active congregation or a rural cemetery that is either maintained as a cemetery or has been used for the burial of the dead within five years previous to the operation or maintenance of such dance hall. Every operation or maintenance of a dance hall within a period of twenty-four hours shall be considered a separate and distinct offense if in violation of this section.