two pesukim in mishlei seem to pull in opposite directions. mishlei 24:17 says בנפל אויבך אל תשמח ובכשלו אל יגל לבך, do not rejoice when your enemy falls, and 24:18 adds the reason: פן יראה ה׳ ורע בעיניו והשיב מעליו אפו, lest hashem see and be displeased and turn his anger away from him. but mishlei 11:10 says ובאבד רשעים רנה, when the wicked perish there is song.

1. so which is it? is joy at the downfall of reshaim a virtue or a flaw?

2. the gemara in megillah 16a has haman throwing אל תשמח at mordechai, and mordechai answers that the pasuk speaks about a fellow jew, while for an enemy of israel it is written ועל במותימו תדרוך. is that the whole answer, meaning it depends who the enemy is, or is there a deeper distinction?

3. practically: when a rasha falls, what is the right reaction inside, gratitude, relief, joy, or nothing? and is public celebration, like purim, judged differently from private feeling?