Contact us today Suffolk (631) 265-1052 Nassau (516) 280-2160
text ed directly (631) 903-3733
Menu
Ed Palermo

Criminal Defense

Can You Be Charged With Trespassing on Public Property on Long Island, NY?

I've personally defended over 2,000 people across Nassau & Suffolk for 31 years. Tell me what happened and I'll text you back.

Authored by Ed Palermo
Read time 10 min read
Updated December 2026

Yes, you can be charged with trespassing on public property on Long Island. At schools, public housing and posted railroad zones, the charge can be criminal trespass, a misdemeanor, rather than simple trespass, a violation. Parks, beaches, schools, libraries, town halls and train tracks are public, but that does not mean you can be anywhere on them at any time. New York law treats a place that is open to the public very differently from one that is closed, restricted or posted, and it lets an authorized person order you to leave. What it does not allow is a trespass conviction built on an order that had no lawful basis.

I have defended people charged in Nassau and Suffolk courts for over 31 years. Here is how the trespass statute applies to public places, the situations where people get charged, and the defenses that apply. For defenses and outcomes in trespass cases generally, see my article on how to beat a trespassing charge in New York.

  • 31+ Years defending criminal cases on Long Island
  • 2,000+ Clients personally represented
  • 7× Best of Long Island winner, Best Lawyer on Long Island category (2019-2024 and 2026)

How New York Law Treats Public Places

Every trespass offense in Article 140 of the Penal Law requires that you knowingly “enter or remain unlawfully.” The definition in Penal Law § 140.00 contains a rule written for places the public can use. Anyone who enters or stays in premises that are open to the public at the time does so with license and privilege, regardless of intent, unless they defy a lawful order not to enter or remain that was personally communicated by the owner or another authorized person.

That one sentence answers most questions about public property. During open hours, in the parts open to the public, you are there lawfully. Three things change that:

Public Places Where Trespass Charges Come Up on Long Island

Place When a charge becomes possible Typical charge
Town and county parks, beaches After closing, in closed or posted areas, or after a lawful order to leave Trespass (violation), or a local park rule violation
Public buildings: town halls, libraries, courthouses Entering non-public areas, or returning after being barred Trespass, or criminal trespass 3rd if the area is enclosed to keep people out
Public schools No written permission, legitimate reason or school business, or refusing a request to leave Criminal trespass 3rd degree (class B misdemeanor)
Public housing Violating posted entry rules, or refusing a request to leave from a housing officer Criminal trespass 3rd degree
Railroad tracks and yards Entering a posted no-trespass railroad zone Criminal trespass 3rd degree
Fenced public facilities: water plants, closed construction sites Getting past a fence or enclosure designed to keep people out Criminal trespass 3rd degree

The school, public housing and railroad rules are written directly into Penal Law § 140.10. On Long Island, the railroad provision matters because the LIRR runs through nearly every community from Nassau to the East End.

Can You Be Banned From Public Property for No Reason?

This is the question I hear most, and the answer comes from a 1984 decision of New York’s highest court. In People v. Leonard, a man declared unwelcome on a State University campus came back and was convicted of trespass. The Court of Appeals threw out the conviction. The record held nothing showing why the university’s order excluding him was justified, and a general authority to keep people off public grounds was not the same as proof that this specific order was lawful.

In practice, that means a trespass case based on a ban from a public place should come with proof of why the ban was issued and who issued it. A written “trespass notice” from a library or a town facility is not automatically lawful just because it exists. I ask for the paperwork, the reason given and the authority of the person who signed it.

An order is not lawful just because it was givenIf you were told to leave a park, library, school or government building, write down who said it, when, and why. Those details can decide whether the order was lawful.

Parks, Beaches and Hiking Areas

Parks and beaches are where many public property trespass cases start, especially in summer. A town beach at night, a closed county park, a fenced dune area or a trail closed for the season is not open to the public at that time. For open, unimproved land with no fence, the statute requires that signs be posted conspicuously or that someone warn you in person, so a missing, fallen or hidden sign matters.

Many towns and villages also have their own park and beach rules, with their own fines. In my experience, a lot of after-hours cases are written as local code violations rather than Penal Law trespass. That can be good news, but it is still worth handling carefully, because a plea entered quickly can carry consequences you did not expect.

Charged with trespassing in a public place?

Send me a text with what happened and your court date. I answer my own messages.

click here to text my cellTEXT ED NOW

Suffolk (631) 265-1052
Nassau (516) 280-2160

Schools and Public Buildings

Schools have their own rule. The statute says that anyone who enters or stays in or about a school building without written permission from someone authorized, without a legitimate reason such as custody of or responsibility for a student, and without legitimate school business, does so without license or privilege. Outside New York City, refusing a request to leave from a principal, custodian, school board member, trustee or other person in charge is criminal trespass in the third degree.

These cases often involve parents in custody disputes, former students and people attending board meetings. Being a parent counts as a legitimate reason, but a court order limiting your access to a child can change that. For public buildings such as town halls and libraries, the issues are usually which areas were open to the public and whether an order to leave was lawful.

Defenses When the Property Is Public

Even a partial defense gives leverage. Weak proof about the order or the signs often supports a negotiated dismissal or an ACD under CPL § 170.55. My Long Island trespass lawyer page explains the degrees, penalties and Long Island courts in more detail.

What to Do if You Are Told to Leave a Public Place

My advice is simple. Leave, calmly. Ask for the person’s name and title, note the time, and write down exactly what you were told. Do not argue, film in a way that escalates things, or come back to make a point. If the order was unlawful, I can challenge it in court, but a confrontation on the spot can add charges such as disorderly conduct or resisting arrest. If you are arrested, do not explain yourself to the officers. Ask for a lawyer and stay quiet.

Frequently Asked Questions

Can you be trespassed from public property?

Yes. Public property is open to you only on its terms. You can be charged if you go into an area that is closed or not open to the public, or if you stay after someone in charge gives you a lawful order to leave. The order has to be lawful, and that is often where these cases are won.

Can you be trespassed from public property for no reason?

The order to leave must be lawful. In People v. Leonard, New York’s highest court reversed a trespass conviction because the prosecution did not show that the order barring a man from a state university campus had a legitimate basis. A general power to exclude people is not enough on its own.

Can you be banned from a public building without committing a crime?

An official can tell you to leave a public building or bar you from returning without first charging you with anything. If you later defy that order, the trespass charge is the crime. Whether the order was lawful, properly communicated and given by someone with authority are all questions I look at.

Is it trespassing to be in a public park after it closes?

It can be. Once a park is closed it is no longer open to the public, so the usual protection for public places drops away. Many after-hours cases on Long Island are written as local park rule or code violations rather than Penal Law trespass, which can change the penalties and the defenses.

Can I be charged for walking on the railroad tracks?

Yes. Penal Law 140.10 makes it criminal trespass in the third degree, a class B misdemeanor, to knowingly enter or remain unlawfully on a railroad right of way or yard that has been designated and conspicuously posted as a no-trespass railroad zone. Crossing at a marked public crossing is different.

Can a parent be charged with trespassing at their child’s school?

Yes, in some situations. Being in a school building without written permission, a legitimate reason or school business is unlawful under the statute, and refusing a principal’s or other person in charge’s request to leave can be charged as criminal trespass in the third degree. Custody and responsibility for a student count as legitimate reasons.

What is the penalty for trespassing on public property?

The same as on private property. Trespass is a violation with up to 15 days in jail and a $250 fine. Criminal trespass in the third degree, which covers fenced areas, posted school and public housing rules and posted railroad zones, is a class B misdemeanor with up to three months and a $500 fine.

Is it trespassing to hike in a closed or restricted area?

It can be. A trail, preserve or beach area that is closed and posted is not open to the public at that time. Fenced or enclosed areas raise the charge to criminal trespass in the third degree. Unfenced land that looks unused needs a posted or personal warning before your presence is unlawful.

Can police order me to leave a public sidewalk?

A public sidewalk is open to the public, so a trespass charge there is unusual. But refusing a lawful police order to disperse while gathered with others, or blocking pedestrian traffic, can be charged as disorderly conduct under Penal Law 240.20. If you were charged after a protest or a dispute, the order’s basis matters.

Should I argue if I am told to leave a public place?

No. Leave calmly, ask for the person’s name and title, and write down what was said. If the order was unlawful, that can be challenged later in court. Arguing on the spot rarely helps and can turn a situation with no charge into a trespass, disorderly conduct or resisting arrest case.

Talk to Me About a Public Property Trespass Charge

Being charged for standing in a park, a school hallway or a town building can feel deeply unfair, particularly when you thought public meant public. When you hire me, I personally review the exclusion order, the posted rules and the signs, and I push for an outcome that keeps your record clean when the evidence supports it. You can read more about how I handle cases on my Long Island criminal defense page.

Reach me by text any hour using the button below. You can also phone (631) 265-1052 in Suffolk or (516) 280-2160 in Nassau. There is no charge for the first conversation, and what you tell me stays private.

Told to leave and then charged?

Text me the details. I read every message myself and reply directly.

click here to text my cellTEXT ED NOW

Suffolk (631) 265-1052
Nassau (516) 280-2160

Edward Palermo, Long Island DWI and criminal defense attorney Ed Palermo View Profile →

Legal Authority & Editorial Review

Authored and reviewed by Edward Palermo

This article was written and reviewed by Edward Palermo, a Long Island criminal defense and DWI attorney with more than 31 years of courtroom experience and over 2,000 clients personally represented across Nassau and Suffolk Counties.

Attorney advertising. Prior results do not guarantee a similar outcome. The information on this page is for general educational purposes and is not legal advice; reading it does not create an attorney-client relationship.