The function of opposing or restraining the excitation of neurons or their target excitable cells.