I wonder if you know the meaning of ithis idiom without first looking it up in a dictionary?
Use them and if you get odd looks, ask what you have done wrong. That's the best way to learn how and when to use idioms and proverbs.
This one is pretty common; you can use it without expecting odd looks. You can always freshen it, as well. For example, "people who live in stone houses should not throw glasses" is not used commonly, and therefore might be better to use. It's not a cliche. Or, maybe "people who are stoned should not throw glass houses" - it's all just word play, but the listener will still get your drift.