Iran warns US over illegal actions