やめなければ

if (someone) doesn’t stop, if (someone) doesn’t quit

→ やめる
やめ stop, quit + なければ negative conditional (“if not”)
verb · informal Rare #27,036
if (someone) doesn’t stop, if (someone) doesn’t quit Often followed by いけない or ならない to mean “must stop” or “must quit.”
JA: 今やめなければ、間に合わない。
EN: If I don’t stop now, I won’t make it in time.
Conjugation of やめる

この慣習はやめなければならない。

We must put an end to this practice.

先延ばしにするのをやめなければ。

I need to stop procrastinating.

君はばかげた行為をやめなければいけない。

You need to stop acting foolishly.

本当にタバコをやめなければいけないよ。

You really have to quit smoking.

当分 借りはやめなければ いけないな

I’ll have to stop borrowing for a while.

— Arrietty (2010)

君は悪習をやめなければいけない。

You have to break your bad habit.

計画をやめなければならなかった。

I had to abandon the plan.