Lots of variables there.
Tax offices in most countries have ways of ignoring cute little "bulletproof" accounting setups, throwing the book at you even retroactively (money, even jail time).
I mean, if you're a small fish, you may well slip under the radar. But obviously you're asking for trouble if you set up a company somewhere, hoping for the best, because someone on HN suggested "country XYZ, low taxes!".
For what it's worth, I "digitally nomaded" through Asia on tourist visas, acting as my normal, home legal entity. No problems. But don't take that as legal advice :)