President Donald Trump has warned Prime Minister Benjamin Netanyahu that he may withdraw US support for Israel and leave it on its own against Iran if it resumes the war.