I believe that in the UK, trespassing isn't actually illegal[0] (but aggravated trespassing is).
0: https://greenandblackcross.org/guides/laws/5-trespass-aggrav...