Usually it's not a factor of temps, it's the amount of sunlight they get each day. Tomatoes usually stop producing viable new by mid-october. Our peppers however have gone into early November, when we'll pick whatever is there; red, green, whatever, before the first hard freeze. We cover the plants if it's just going to be a light frost.