What is the meaning of [People who live in glass houses should not throw stones]

MEANING Don’t criticize someone if you’re not perfect either; don’t be a hyprocrite
EXAMPLE “Why are you always bothering her about being addicted to her phone? You’ve been smoking for 20 years and haven’t been able to give it up. People who live in glass houses should not throw stones.”