at the last gasp

  1. (a) son nefesinde, ölmek üzere, (b) son anda, son dakika(sın)da.