Iran has warned any US aggression against it will be "tantamount to all-out war", as the death toll from the country's uprising reaches at least 5000.