cling on on by fingernails

cling on/hang on by your fingernails

if you are clinging on by your fingernails, you are only just managing to avoid danger or failure (usually in continuous tenses) We're hanging on by our fingernails and hoping that it rains before we lose our entire crop.
See also: cling, on