If you want to work in Indonesia or Thailand you need a local company to sponsor your visa and work permit, which makes remote work tricky. In years past you used to be able to just leave the country every 60 days or whatever and hop right back over the border, but you can't get away with that these days.
Doesn't make any sense, but that's how it is.