idiom

By the skin of one's teeth.

Theme: adversity Keyword: body

means

Only just succeeding or escaping failure.

Example

He passed the exam by the skin of his teeth.