nearly; almost; on the verge of
Used adverbially to indicate that something almost happened, often with a sense of narrowly avoiding an undesirable outcome. Common with verbs in the potential or past tense.
I almost missed the train.
It nearly turned into an accident.