Any person who knowingly takes, escorts, or accompanies any unmarried minor to a dance hall which the minor is prohibited from attending by section 577-22, or who invites or encourages the minor to attend such dance hall, shall be fined not more than $100 or imprisoned not more than ninety days.