に越したことはない

it's best to

→ に
phrase Rare #41,113
it's best to Used to say that doing or being something is preferable, though not always essential.
JA: 準備は早いに越したことはない。
EN: It's best to prepare early.

言わぬに越したことはない。

It's best not to say anything.

早いに越したことはない。

The sooner, the better.

用心に越したことはない。

Better safe than sorry.

警戒するに越したことはない。

You can never be too cautious.