/baɪ ðə skɪn ʌv wʌnz ˈtiːf/
barely managing to succeed.
“She passed the exam by the skin of her teeth.”