China is trying to protect its economy from sanctions.