"walk the line" in this case means to adopt a course of action that falls on the desired "line" between the two stated extremes. "uncertain" means that it may be difficult to determine exactly where that line lies.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.