walk a thin line

walk a thin line (between something)

also walk a fine line (between something)
to balance two competing ideas or groups The diplomats knew they had to walk a fine line between the rebel groups and the government.
See also: line, thin, walk