US President Donald Trump warned Tehran that time is running out on his latest deadline for a deal to end the war.