Pr. 31:4-5 teaches, "It is not for kings, O Lemuel, it is not for kings to drink wine; nor for princes strong drink: lest they drink and forget the law, and pervert the judgment of any of the afflicted." The danger is obvious.
By the way, Pr. 31:6,7 give us the only legitimate use of alcoholic wine in Scripture. "Give strong drink unto him that is ready to perish, and wine unto those that be of heavy hearts. Let him drink, and forget his poverty, and remember his misery no more." This would be using it as an anesthetic; a pain killer. But this is not for everyone; he says in v. 6, "unto him that is ready to perish." Of course, they did not have all the pain killers that we have today. In our time, it would not be necessary to do this. We have many anesthetics available for those who are dying. Then, about the only thing available to the average person would have been some kind of alcohol. Alcohol is a depressant; it is not a stimulant, as some think. After several drinks, one gets dizzy; then he will pass out. So this passage teaches that alcoholic beverage would be only for the person who is ready to die; there would be no hope for his life. All that would be possible would be to ease his pain and help him forget his misery.