Tax planning isn't tax evasion 😉 To plan your taxation, you should do more steps than just open an offshore company. Usually, your taxes are determined by your tax residency, so at first, you should change that.
There are more complex structures︀ where you do not necessarily have to change your tax residency, but those structures are︁ way more expensive.