"Do not drink wine or strong drink...when you enter the Tent of Meeting...and when you teach the children of Israel"—Leviticus 10:8-11.
It is forbidden to enter the Holy Temple or to issue a halachic ruling while inebriated—whether from wine or any other intoxicating beverage.