It's not a law, only a property rule - so they tell you to leave and/or ban you from ever coming back.Big deal.
In most states, but I fear Hochul is making it law in NYS.