The easiest rule to follow is to keep your knees and shoulders covered when deciding what to wear in Thailand. Though no one will prohibit you from entering anywhere for how you are dressed, except temples and the Grand Palace, it's best to dress a bit more conservatively in Thailand.