Not at the point where the under cover cop decides to start exercising his power as a cop. At that point he must identify himself as a cop. Otherwise any old jackass could come up to you and threaten you.
And identify themselves in a reliable manner, not just yell “police!”Anyone can do that.