If Iran is planning to launch a ballistic missile attack on Israel, it had better prepare to face the consequences, the US has warned.