is it okay to walk in a grocery store and not buy anything?
yes, especially if you were open to the possibility of buying something when you first went in. maybe not even on that visit, maybe on a future visit. also if you own the store or work in it. or to warn of danger (fake danger doesn't count). these are all good reasons