The use of нельзя is a matter of grammar, whereas dictionaries only talk of semantics, phonology, and morphology.

Here is an excerpt from my favorite reference grammar:

Нельзя combines with the...