on thin ice

中高级 (B2) informal

In a dangerous situation where you must be very careful.

"After being late three times, he knew he was on thin ice with his boss."