A person who—
(a) behaves irreverently near any church, chapel, or other building for religious worship during divine service;
(b) behaves irreverently or indecently in or near any public burial ground during the burial of a dead body,
is liable on summary conviction to a fine of $1,000 or to imprisonment for one year.