The US president’s strange mix of weakness and anti-Beijing hostility may be pushing Xi Jinping towards a fateful decision