You could bridge it out (very) temporary to see if its the stat faulty would probably be the easiest.
Otherwise, could be tip not in the pilot light, nut not tightened on the gas valve from the thermocouple or the gas valve itself, rarely the gas valve though.
Please dont play with gas if...