Prevent 2-line pages

Hello everyone,
I am typesetting a novel where chapters always begin on a new page.
Occasionally, the page before the new chapter is very tiny, like 2 lines (see image below) :


This left page looks pretty bad and it would look way better if those two lines were added to the previous pages (and the former paragraphs were a bit more condensed to make room for them, of course)
Is there a way to automatically prevent 2-line pages (or even n-line pages, I may have a few cases of 3-line pages which are as disgraceful) throughout the whole book ?