(a) A person is guilty of criminal trespass in the first degree when: (1) Knowing that such person is not licensed or privileged to do so, such person enters or remains in a building or any other premises after an order to leave or not to enter personally communicated to such person by the owner of the premises or other authorized person; or (2) such person enters or remains in a building or any other premises in violation of a restraining order issued pursuant to section 46b-15 or a protective order issued pursuant to section 46b-38c, 54-1k or 54-82r by the Superior Court; or (3) such person enters or remains in a building or any other premises in violation of a foreign order of protection, as defined in section 46b-15a, that has been issued against such person in a case involving the use, attempted use or threatened use of physical force against another person; or (4) knowing that such person is not licensed or privileged to do so, such person enters or remains on public land after an order to leave or not to enter personally communicated to such person by an authorized official of the state or a municipality, as the case may be.

(b) Criminal trespass in the first degree is a class A misdemeanor.