We perturb a linear Schr\"odinger equation with Lam\'e potential with a small positive or negative potential. The new perturbed operator has one or more eigenvalues, at most one in each spectral gap. We then add a nonlinear term and study the stability of the corresponding nonlinear stationary waves.