New York Times publisher warns Trump on anti-media rhetoric