Correct

前功尽弃

/ qián gōng jìn qì / 
Strokes

Definition

to waste all one's previous efforts (idiom)/all that has been achieved goes down the drain

Example

Definition

all that has been achieved is spoiled; all the previous efforts are wasted

1
Dàbà
大坝
yīdìng
一定
yào
要
zài
在
yǔjì
雨季
dàolái
到来
qián
前
hélǒng
合拢
  
,
fǒuzé
否则
jiù
就
huì
会
qiángōngjìnqì
前功尽弃
  
。

The dam must be closed before the rainy season sets in, or all our labour will be lost.