The provocative post from Trump comes as the US president heads for China for a key summit with President Xi Jinping.