The dynamics of learning about a climate threshold