The F.B.I. investigation that toppled the director of the C.I.A. and now threatens to tarnish the reputation of the top American commander in Afghanistan underscores a danger that civil libertarians have long warned about: that in policing the Web for crime, espionage and sabotage, government investigators will unavoidably invade the private lives of Americans.