Conan has a bad habbit to introduce himself as a detective and in this case, that was extra stupid. He had no way to know Pisco would get killed, or even caught, or that he wouldn't tell Gin about Ai and him.
I like this case because Gin is such a great antagonist, but Conan really was careless...