The sentence, I think, should read:
"Only if the temperature in the Brazilian ash's environment never exceeds 95 degrees Fahrenheit will its rings be a reliable measure of the tree's age."
The second sentence is wrong because in this type of construction, you have to invert the subject and verb.
"I'll only marry you if you lose weight" = "Only if you lose weight will I marry you"
Student or Learner