US warns Iran 'serious risk' if it attacks