The president's extraordinary warning came after renewed calls for his death during the funeral of Iran's Supreme Leader Ayatollah Ali Khamenei.