be on the verge of

syn to be about to do something

biti na rubu da se nešto učini/dogodi

We were on the verge of going bankrupt when my wife won the lottery.