If You Are to Be a Gentleman is very close to the rhyme A Good Child, A Good Child...
If you are to be a gentleman,
As I suppose you'll be,
You'll neither laugh nor smile,
For a tickling of the knee.
This rhyme and illustration can be found in The Real Mother Goose (1916), illustrated by Blanche Fisher Wright.