~に{限|かぎ}る
… is the best (thing to do)
N2
N / V dictionary form / V nai-form + に{限|かぎ}る
「~に{限|かぎ}る」 states the speaker's personal opinion that something is the best thing in that situation ({疲|つか}れた{日|ひ}は{早|はや}く{寝|ね}るに{限|かぎ}る). It follows a noun, a dictionary-form verb or a nai-form verb and usually ends the sentence. It is fairly casual, common in conversation and essays, and is not used for objective facts. Do not confuse it with 「に{限|かぎ}って」 ('of all times') or 「に{限|かぎ}らず」 ('not only'), which lead into another clause, while 「に{限|かぎ}る」 is a final evaluation. Compared with 「に{越|こ}したことはない」, it sounds more enthusiastic and personal.
Examples
夜勤が終わって疲れた日は、何も考えずに早く寝るに限る。
On days when I'm tired after a night shift, the best thing is to go to bed early without thinking about anything.
大阪への出張なら新幹線に限る、とグエンさんはいつも言っている。
Mr. Nguyen always says that for business trips to Osaka, the Shinkansen is the best.
知らない人から届いた怪しいメールは、開かないに限る。
With suspicious emails from strangers, it's best not to open them.
Exercises
1.暑い夏の現場で働いたあとは、冷たい麦茶 。
2.分からないことがあったら、一人で悩まずに先輩に聞く 。