I pursue an investment strategy that would make those tricks highly risky, and or inconvenient. The tradeoff is that I believe I make more money the way I'm doing it, including the taxes I pay.
It is worth remembering that this doesn't have to be the case. The governments of the world could stop much of this tax avoidance if they had the will.