Expresses the idea 'it is best to...' or 'nothing better than...'.
Verb-てform + に越したことはない, い-Adjective + に越したことはない,な-Adjective + に越したことはない, Noun + に越したことはない
Long explanation:
The ~に越したことはない grammar point is used to express the notion that a certain course of action or state is the best or most desirable. It literally means that 'nothing surpasses' the stated condition or situation.