I don't think the trees actually "think", it's probably just something that happens, like how the leaves fall off before winter. Anyway, I don't know if the pine cone thing is true or not, there are all sorts of supersitious beliefs about prediction weather.