Obama warns against ‘crude’ nationalism