Proverbs 31:4-7 (NLT)

4 It is not for kings, O Lemuel, to guzzle wine. Rulers should not crave alcohol.
5 For if they drink, they may forget the law and not give justice to the oppressed.
6 Alcohol is for the dying, and wine for those in bitter distress.
7 Let them drink to forget their poverty and remember their troubles no more.

Some believe Lemuel is King Solomon, but there is no solid proof. However Lemuel, means one belonging to god. So we have someone hopefully following God and giving advice about alcohol. He warns rules should not crave strong drink nor drink excessive amounts of wine. A ruler is to judge fairly, and give commands when necessary, but if impaired by alcohol they may not be able to do so properly. Their views on the law may become distorted, and anger may prevail as it does in some who drink and then the oppressed will not find justice. Strong drink was permitted for those dying and in pain. There should be compassion to those who are suffering and allow for that which can give them peace and comfort. Even those in bitter distressed are not discredited for using wine to help in their comfort. Christ gives freedom and even Peter learned there are things which might not seem acceptable that at times are accepted and ok to do. So Lemuel says allow the suffering to find some peace. It’s a word even for our modern medications that help those with depression and anxiety. God gave us wisdom, and knowledge that we can use as long as we use it the proper way and in a way that honors Him.