The first of those meanings is the only one that is used. The stones that are thrown are presumed by most people to be thrown at someone else, outside of the house, as an attack. And the reason it's such a bad idea is then obvious: retaliation in kind will result in the destruction of your home. You shouldn't attack when you are vulnerable.