하마터면
almost; barely; nearly
Explanation
almost; barely; nearly
If something had gone wrong even slightly.