The president says that the US may become unable "to be reasonable" if the Iranian side does not learn lessons