encroach vs transgress

encroach

verb
  • to intrude unrightfully on someone else’s rights or territory 

  • to advance gradually beyond due limits 

noun
  • Encroachment. 

transgress

verb
  • To act in violation of some law. 

  • To commit an offense; to sin. 

  • To exceed or overstep some limit or boundary. 

  • To spread over land along a shoreline; to inundate. 

How often have the words encroach and transgress occurred in a corpus of books? (source: Google Ngram Viewer )