A conflict over Taiwan could damage China’s own economy and disrupt trade around the world.