to be taking a risk
be skating / walking on thin ice
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition