For what it's worth in the UK that would still be trespass, a civil offence. If you had intent to burgle that would be a crime, but if you had no criminal intent it would stay a civil matter.
Edit: removed incorrect example - thanks seebee
Edit: removed incorrect example - thanks seebee
Edit: squatting was I believe a special case as squatters gained rights as residents. If you are asked to leave and don't, I believe the police could then be asked to remove you.