The moral of the story is that if you want to leave to avoid paying taxes, don’t speak or write a word about that motive, don’t research relative tax advantages on the net, don’t ask your accountant. Establish other motives well in advance. Buy property, vacation there, show you started to love the place, especially if gets good weather. Start a business there so you logically need to be closer to manage it. Maybe even get a girlfriend or wife in the other country.
Even if you do all of that the IRS still will come after you, but you have a much better chance of prevailing in court.
And we derided the USSR for having an Iron Curtain.