The dopamine neuron also contains opioid receptors. Endorphins bind not only to the GABA neuron but also to the dopamine neuron. In this case, the binding action inhibits the release of dopamine.
Endorphins can therefore both stimulate and inhibit. Under normal conditions, they help to keep the system in balance.