A temple is called the Devalaya or the "abode of God". That's why we don't enter it while we are not pure.
Now, drinking alcohol makes one impure. It is considered in the Hindu scriptures as one of the great sins.
Manu Smriti 9.235. The slayer of a Brahmana, (A twice-born man) who
drinks (the spirituous liquor called) Sura, he who steals (the gold of
a Brahmana), and he who violates a Guru’s bed, must each and all be
considered as men who committed mortal sins (mahapataka).
Also, see the following passage from the Kurma Purana:
A person who kills a brahmana, drinks wine, or steals gold from a
brahmana, has to perform penance by killing himself. A person who
kills a brahmana may also build a hut in the forest and live there for
a period of twelve years. But throughout the period, he has to bear a
mark signifying the dead brahmana’s head on his palm. He is also not
permitted to visit another brahmana or a temple as long as the penance
is going on.
See the bold portion. He should not enter a temple because he does not regain purity unless the penance is complete. This shows that one must not enter temples or any holy places while in an impure state.
So, from your side it was a good Karma done if you have informed him with the correct information and asked him not to enter the temple.
However, if devotion is high, then such restrictions may not matter and in those cases it is better not to come in between the God and his devotee. Let them deal with it.