I agree with you.
Absent unusual circumstances, cops should be dressed as cops, not criminals.
Even if they are dressed as cops is no guarantee tho. I think the killers in the famous St. Valentines Day massacre were dressed as cops.
Then there was the guy that shot Barzini in The Godfather.