Grammar
N1AI-drafted〜に越したことはない
it's best if…; nothing beats…
Formation
V-辞書形 / い形容詞(〜い)/ な形容詞(+な・である)/ N(+である)+ に越したことはない
Usage
Used to say that although something is not absolutely necessary, having or doing it is preferable to not. It carries a mild, common-sense tone, often followed by が/けど plus a concession ("but it can't be helped"). It is softer than 〜なければならない, which states an obligation, and it is used in both speech and writing.
Examples
家賃は安いに越したことはない。
やちんは やすいに こしたことはない。
The cheaper the rent, the better.
用心するに越したことはないから、鍵は二つ付けた。
ようじんするに こしたことはないから、かぎは ふたつ つけた。
You can't be too careful, so I put on two locks.
健康に越したことはないが、無理な食事制限はかえって体に悪い。
けんこうに こしたことはないが、むりな しょくじせいげんは かえって からだに わるい。
Nothing beats being healthy, but extreme dieting is actually bad for you.