Staying in Thailand a little under 30 days then 2 weeks Bali then back in Thailand for under 30 days then home. That should be ok, right?
TLDR : Answer Summary
The post inquires whether a travel plan involving a stay in Thailand for just under 30 days, a subsequent 2-week trip to Bali, and then returning to Thailand for another stay of under 30 days is acceptable according to Thai immigration rules.