Skin of my teeth
Here’s what it means
To escape only barely, with almost nothing remaining.
Why the Bible says it this way
Job's Hebrew is difficult, but the traditional English rendering became a familiar way to say 'by the narrowest margin'.
The writer uses vivid or unusual wording to make the point clear and memorable.
A helpful detail: The Hebrew wording is obscure, so exact explanations vary.