I know what kind of things I myself have been irritated by in detective stories. They are often about one or two persons, but they don't describe anything in the society outside.
I have been threatened occasionally. But that happens to everybody who is writing this kind of things. Threats will come without fail. It might happen to the most 'innocent' texts. If it gets too much we call the police.
Crime stories are, as you know, one of the most popular forms of entertainment that exist. If you then try to have something to say... that I have, of course.
Writing detective stories is about writing light literature, for entertainment. It isn't primarily a question of writing propaganda or classical literature.