Do it like most people do it. Don't earn enough to have taxable income. /s Those are the real lazy tax evaders, that are causing your taxes to be higher than needed.
On the other hand, if you earn so much that taxes are really becoming a problem and you already took care of the basic stuff like incorporating, using every write-off in existence, then the only thing left is to move to a tax friendlier country. You can try to work around this but eventually, the only legal way to really bring taxes down to a minimum is changing your tax residency.