But countries that anger China are learning that once in, it's hard to get out.