Bad guy or good guy .... if he got the jump on ya, he got the jump on ya.
If you complied, and it turns out to be a cop, your dialogue with him/them will bear this out.
If you complied, and it turns out to be a bad guy, you'll have to adapt your strategy on the fly, distractions and pattern...