give a warning to vs put someone on guard

give a warning to

put someone on guard

How often have the words give a warning to and put someone on guard occurred in a corpus of books? (source: Google Ngram Viewer )