Iran warns US against military escalation, cites costs of past wars