Magic Chef oven not igniting

I just purchased a used Magic Chef propane stove/oven. The burners all light okay but the oven is having problems. The pilot lights up and the oven ignites when the knob is turned to max. But when I try to turn the knob to a lower temp the pilot light flame gets smaller then the oven turns off. Any suggestions? It’s either on full or off.