Frequency-Constrained Learning for Long-Term Forecasting