China warns U.S. to change course or risk 'conflict’