1 idiom that means keep away from danger
If you can't take the heat, stay out of the kitchen
Don't play with fire. Don't poke the bear