If you find no one in, do not enter unless you have been given permission to do so. If you are told, ‘Go away’, then do so- that is more proper for you. God knows well what you do.
If ye find no one in the house, enter not until permission is given to you: if ye are asked to go back, go back: that makes for greater purity for yourselves: and Allah knows well all that ye do.