It was mandated in the old days that crime could not be gotten away with or rewarded on TV or the movies.
Years ago I read a book titled STORIES THEY WOULD NOT LET ME PUT ON TV by Hitchcock.
Several years later, there was a competing mystery theater program on another channel and I noticed one of the stories was from that book.