I can remember my first visit to Phuket many, many years ago. Needing a toilet and not finding one, I asked in a shop if there were any public toilets nearby. Just go into the nearest hotel and use theirs, was the reply. Its what I do to this day whenever I visit the island, although that is not so often now. Never been challenged, so I assume it is still acceptable.