That's called self censorship
Very true.
That's one term that applies. Another term to consider is "discernment" or perhaps "discretion"? Have you ever been gunned down because you shot from the hip? I have.