Iran is warning the United States of "heavy consequences" for entering the war on Israel's side and bombing the Islamic Republic's key nuclear sites.