功亏一篑
Give up when near success.
Look back from the plough.
Another course would have done it.
eg:Regrettable to see that you give up when near success.
中英俚语俗语来源:尚书·旅英:"为山九仞,功亏一篑。"
反义词:大功告成 Come off with honours