The idea is that leaving the country is taxed as if you sold your shares.
So selling them presumably doesn't help.
The idea is presumably that you would "sell" at an artificially low price.
Which is illegal if you do it for tax evasion.
and legal if you’re just helping your buddy out
Not sure if the tax office agrees.