Analysts saw little prospect of either President Trump or Tehran backing down after days of exchanging fire.