Section 40. Whoever willfully interrupts or disturbs an assembly of people meeting for a lawful purpose shall be punished by imprisonment for not more than 1 month or by a fine of not more than $50; provided, however, that an elementary or secondary student shall not be adjudged a delinquent child for an alleged violation of this section for such conduct within school buildings or on school grounds or in the course of school-related events.