"Walk a tightrope" means to be in a situation where one has to carefully balance different options or extremes, often involving a risk of serious consequences if one fails to maintain that balance.
You can use it when describing a scenario where someone is dealing with conflicting demands or trying to maintain a delicate situation without causing problems.