My question involves criminal law for the state of: NY (NYC particularly)

So, I was with some people and we go to an open balcony area of an apartment building. We all had possession of marijuana. I was under the assumption that one of the people lived in the apartment building. I even called one of them while being detained who I thought lived in the building (but actually didn't). We were arrested with trespassing second degree (140.15).

This is my first offense, with a good education/work background. I am not understanding if I should plead guilty, not guilty or no contest to this.