Something made of glass can easily break; it is vulnerable; and we are all vulnerable in different ways. Sometimes we forget our own vulnerability and "throw stones" at other people in the form of criticism.
A person might remind us that we too have our own faults and weakenesses by saying "people who live in glass houses should not throw stones".
Check that.