Get out while the getting is good informal
In some cases, the verb "get" can be replaced by other verbs such as "go" or "do" without changing the meaning.
To leave or escape from a situation while one still can before it gets worse
The storm is still far from the land, so we are getting out while the getting is good.
Hey, there's no way you can win over those strong men, so please get out while the getting is good.
To sell one's holdings in stocks when there is a prediction of a drop in prices
With the ongoing pandemic, I think it's best to get out while the getting is good.
The stock price of this company is likely to drop tomorrow, so I suggest that we should get out while the getting is good.
To seduce and make someone think you're in love with them (the fact is that you're not) then leave them
To escape from the statement saying that someone is guilty of a crime or of doing something wrong or evade impeachment without being responsible for any sentence or punishment
To flee or run
To leave a place, especially to start a journey
I'm leaving
The verb "get" should be conjugated according to its tense.