The problem is that especially in the case of China foreigners do not have any practical justice in the court. It is the rule of the party, not rule of the law. Any party member gets preferential treatment over a foreigner, as they know strings to pull and people to bribe.
China excels in certain categories, and protecting the rich and connected is one of those. If you get too rich and powerful independent of the government maybe you can go back to being in trouble too.