We can avoid such topics by having good moral and ethical values. Educate ourselves on what is appropriate in different social settings and always choose to talk about things that are acceptable to a wide audience. For example, we can talk about art, literature, sports which are all great topics that are far from being inappropriate like this.
By being conscious of the appropriateness of topics. Only bring up topics that are positive and respectful.