keep from vs resist the temptation to

keep from

verb
  • To make and cause to remain secret. 

  • To protect or preserve from. 

  • To prevent or restrain (someone or something) from; to refrain or cause to refrain from. 

  • To cause to be excluded or not present. 

resist the temptation to

How often have the words keep from and resist the temptation to occurred in a corpus of books? (source: Google Ngram Viewer )