What do you mean by dirty ideas?

Unhealthy thoughts, uncleanness and bad morals.

Dirty thought is an adjective phrase that describes a person's unhealthy ideological and moral quality, unclean words and deeds, bad moral character and incorrect thinking. Refers to a person's thinking is biased and impure.