China is shooting itself in the foot.