(a) A person may not knowingly enter or remain on premises
(1) in which alcoholic beverages are manufactured, sold, offered for sale, possessed for sale or barter, trafficked in, or bartered in violation of
(A) AS 04.11.010; or
(B) a municipal ordinance adopted under AS 04.21.010(a) or (b); or
(2) licensed under this title during hours in which the person's presence on the premises is a violation of a municipal ordinance adopted under authority of AS 04.16.010(d) providing for hours of closure that are outside the hours of closure prescribed by AS 04.16.010(c).
(b) A person who violates this section is guilty of a violation.