tread a fine line between (something)
To navigate or strike a balance between two sides, positions, or approaches to something, especially when trying to avoid one of them. The film treads a fine line between parody and homage. As a new parent, you have to tread a fine line between looking out for your child's welfare and being overprotective.