So you admit to not knowing law but then make some statement saying that going to a bank with the intention of robbing it is fine until you actually rob it?
Yes they can mean that you don't have a legal right to be somewhere if you went there with the intention of committing a crime.