Setting minimum and maximum firing rate of a LIF neuron

@Eric thank you for your response.
I am working on the regularization method as you suggested for my MNIST example.
So this means if I have to keep the spiking threshold of the LIF neuron as explained in this thread “Spiking threshold as a parameter” in some range then I will have to do it with the same regularization method? or is there any easy way to do so?