China and Mexico lashed out Tuesday after Donald Trump threatened to begin his presidency with an immediate trade war against the top three US economic partners.