In Jewish law there is a specific injunction about going into a store and leading on the owner that you are going to buy from him/her. It is akin to theft (violation of 10 commandments) as you are stealing the owner's time and it is also like violating the law against purposely tripping a blind person. There are actually lengthy discussions of this in the Talmud written over 1700 years ago.
There is no injunction about going in to look if you make clear you are not intending to buy.
There is no injunction about going in to look if you make clear you are not intending to buy.