Xi Jinping has a series of key aims, which Vladimir Putin can assist. But there’s a limit to how far he will go.