US President Donald Trump has threatened to blow up Iran's energy infrastructure if negotiations to end the war are not successful.