Sec. 53a-107. Criminal trespass in the first degree: Class A misdemeanor. (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-16a, 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.

Sec. 53a-108. Criminal trespass in the second degree: Class B misdemeanor. (a) A person is guilty of criminal trespass in the second degree when, knowing that such person is not licensed or privileged to do so, (1) such person enters or remains in a building, or (2) such person enters or remains on public land.

(b) Criminal trespass in the second degree is a class B misdemeanor.

Sec. 53a-110. Affirmative defenses to criminal trespass. It shall be an affirmative defense to prosecution for criminal trespass that: (1) The building involved in the offense was abandoned; or (2) the premises, at the time of the entry or remaining, were open to the public and the actor complied with all lawful conditions imposed on access to or remaining in the premises; or (3) the actor reasonably believed that the owner of the premises, or a person empowered to license access thereto, would have licensed him to enter or remain, or that he was licensed to do so.

Sec. 53a-110a. Simple trespass: Infraction. (a) A person is guilty of simple trespass when, knowing that such person is not licensed or privileged to do so, such person enters or remains in or on any premises without intent to harm any property.

(b) Simple trespass is an infraction.

Sec. 53a-110d. Simple trespass of railroad property: Infraction. (a) A person is guilty of simple trespass of railroad property when, knowing that such person is not licensed or privileged to do so, such person enters or remains on railroad property without lawful authority or the consent of the railroad carrier.

(b) Simple trespass of railroad property is an infraction.

Sec. 53a-110e. Simple trespass of Watershed land: Infraction. (a) For the purposes of this section, “water company” has the same meaning as provided in section 25-32a. A person is guilty of simple trespass of public water supply watershed land that is owned, controlled or managed by a water company when, knowing that such person is not licensed or privileged to do so, such person enters or remains on the watershed land without lawful authority or the consent of the water company.

(b) Any person who violates any provision of this section shall have committed an infraction and be fined ninety dollars.