IDIOMS

on the brink

(idiomatic) Very nearly; imminent; close.

Example:   The old building seemed to be on the brink of collapse.