while the going is good

idiomPart ofgoing

while the going is good — idiom

1. Before a situation changes and makes something impossible to do.

1.idiom
Definition

Before a situation changes and makes something impossible to do.

Example

We should leave the party while the going is good.

Diego sold his stocks while the going was good.