«كُلُوا وَاشْرَبُوا وَلَا تُسْرِفُوا»
Eat and drink, but do not be excessive. (Al-Aʿrāf 7:31)
Kulū and ishrabū are commands, whereas lā tusrifū is a prohibition. All are non-declarative in both wording and function: prohibition is also a kind of directive.
Eating, drinking, and setting limits on consumption belong to one practical context. The variation between command and prohibition does not destroy their common communicative character.