見切りをつける
見込みがないと判断する。見限る。
to give up as hopeless ; to wash one's hands (of someone or something)