When someone is on thin ice, it means they are in a very risky situation, like when you are walking on a frozen pond where the ice is very thin and it would be easy to fall into the freezing water. It is often used when you are in danger of making another person angry with you.

e.g. “Paul is really on thin ice with his girlfriend since he forgot about their anniversary last week!”