It’s never a good idea to open a door when you know cops are right outside.
I do not think he knew they were cops