The market solves this problem. If China makes things too hard on intl businesses, the businesses will invest to go around China
You’re forgetting the time aspect. A government can play a longer game than most private investors.
Markets: 0.25 years
Western govts: 4-5 years
Autocratic regimes: lifetime of dictator