As someone says, don’t interrupt a rival when they are making a mistake. China can gain quite a lot by just waiting on the side lines, contributing as much as they can get away with while still looking reasonable (which is quite easy, when the other protagonists are Putin, Trump, or Khamenei jr).