President warns against protectionism and promises that China will not embark on a currency war