China warned the United States on Thursday that everyone will be harmed if President Donald Trump launches a trade war, as official figures showed the Asian power maintained a robust trade surplus with the US.