by the skin of one's teeth

📖 general
Meaning
to barely succeed or escape a situation
Literal Meaning
with only a thin layer of skin as protection
Example
“I passed the exam by the skin of my teeth, scoring just enough to move on.”