It's not that simple, even if you live in a Western country with supposedly functioning rule of law, and don't even do any tax avoidance, if the tax authorities target you, you can still be financially ruined and/or go to prison.
Special units within tax authorities can fake evidence and use all kind of dirty tactics against innocent people.
Read this thread with some examples, including an interesting one from the Netherlands
Who are the most aggressive and least aggresive tax authorities?
And laws/rules and interpretation of laws can be changed retroactively, so what was legal in the past suddenly becomes criminal.︀ Italy does this all the time.
Even happened in Sweden to a guy called Linus︁ Dunkers. He was one of those who thinks it's cool to pay tax, and was︂ super honest and transparent with all his transactions. So he contacted the tax authorities, said︃ he would trade crypto in quite a large number of transactions - tax authorities said︄ ok, thats fine, and it will be taxed at 30% capital gains. Then 5 years︅ later, they said no, it should really be taxed at 60% according to this new︆ rule we just created, and since you only paid 30% now you have to pay︇ the extra 30% plus penalties, plus we are charging you with severe tax evasion maximum︈ sentence 10 years in prison.
And if you go outside the western world, the distinction︉ between law abiding, tax avoidance and tax evasion is even murkier. In some countries, if︊ you are buddy with the dictator there is no tax, and for everyone else, you︋ can randomly be accused of tax fraud and put in prison regardless of if you︌ followed the law or not.