Minnesota dam on the brink of giving way