Is it a mitzvah to get drunk on Purim?
(יז) בְּיוֹם־שְׁלֹשָׁ֥ה עָשָׂ֖ר לְחֹ֣דֶשׁ אֲדָ֑ר וְנ֗וֹחַ בְּאַרְבָּעָ֤ה עָשָׂר֙ בּ֔וֹ וְעָשֹׂ֣ה אֹת֔וֹ י֖וֹם מִשְׁתֶּ֥ה וְשִׂמְחָֽה׃
(17) on the thirteenth day of the month Adar, and on the fourteenth day of the same they rested, and made it a day of feasting and gladness.

How do the rabbis interpret this biblical verse to derive the mitzvah to get drunk on Purim?

אמר רבא מיחייב איניש לבסומי בפוריא עד דלא ידע בין ארור המן לברוך מרדכי

Rava said: One is obligated to become inebriated [with wine] on Purim until he cannot tell the difference between cursed be Haman and blessed be Mordecai.

How do you think the rabbis define how drunk to get based on this principle?

רבה ורבי זירא עבדו סעודת פורים בהדי הדדי איבסום קם רבה שחטיה לרבי זירא למחר בעי רחמי ואחייה לשנה אמר ליה ניתי מר ונעביד סעודת פורים בהדי הדדי אמר ליה לא בכל שעתא ושעתא מתרחיש ניסא

Rabbah and R. Zera joined together in a Purim feast. They became inebriated, and Rabbah arose and cut R. Zera’s throat. The next day he prayed on his behalf and revived him. Next year he said: Will the master come and we will have the Purim feast together. He replied: A miracle does not take place on every occasion.

The description of this event comes immediately after the above principle. Do you think this is intended to modify the legal principle stated above?