The lesson seems quite clear: if you don’t want attacks on your home territory steel clear of murderous attacks against your enemies. The is generally known as making peace.
On the other hand, if you want to dance on the graves of dead Palestinian residents of Gaza, continue to support Hamas and its allies.