Walk a tightrope

To be in a situation where you must be very cautious.

The Prime Minister is walking a tightrope regarding the international trade deal.