Meaning of “do sth by the skin of your teeth” - Learner’s Dictionary

do sth by the skin of your teeth

informal

to only just succeed in doing something:

They held on by the skin of their teeth to win 1-0.

(Definition of “do sth by the skin of your teeth” from the Cambridge Learner’s Dictionary © Cambridge University Press)