China warns US to avoid 'confrontational' thinking