The judicial branch is meant to be neutral judges - but police and prosecutors are not part of the judicial branch. In the case of prosecutors, their job is explicitly to not be neutral.
However, the 5th amendment applies there as well - they can't force you to self-incriminate, you are free to remain silent in police interrogation. However, there's nothing in the 5th amendment saying the police or courts can't ask clever questions - if you incriminate yourself because a police asked a sneaky question in interrogation, that's on you.