Take a look at this. I quickly did a search and this seemed to be a good answer. I will check later to see if this is still the case. I may be off in my definitions. Short answer, It isn't a criminal act to be in the country illegally.
https://www.politifact.com/new-york/...-us-not-crime/