Skating/treading/walking on thin ice
Whether to skate, tread, or walk on thin ice is very risky and can put one in a perilous situation. The expression is attributed to Ralph Waldo Emerson (1803-1882) in Essays (1841) when he wrote, “In skating over thin ice our safety lies in speed.”