hang by a hair

verb

1.
depend on a small thing or be at risk