Warning comes as Trump also criticises Netanyahu over Israel’s attacks on Lebanon.