idir cleith agus ursain

Etymology
lit. 'between wattle and jamb'

Phrase

 * 1) by the skin of one's teeth, by a hair's breadth