by the skin of one's teeth
by the skin of one's teeth {adv. phr.}
By a narrow margin; with no room to spare; barely.
The drowning man struggled, and I got him to land by the skin of my teeth.
She passed English by the skin of her teeth.
Categories:
Source: A Dictionary of American Idioms