The correct answer is B. upright.
The word "upright" means honest, fair, and just. It is the opposite of dishonest, unfair, and unjust. In the sentence, "His father advised him to be fair and square in his dealings lest he should fall into trouble," the father is telling his son to be honest and fair in his dealings with others, so that he does not get into trouble.
The other options are not as accurate descriptions of the father's advice. The word "considerate" means thinking about and caring about the needs of others. The word "careful" means taking precautions to avoid harm or danger. The word "polite" means being respectful and courteous. While all of these qualities are important, they are not the focus of the father's advice. The father is simply telling his son to be honest and fair in his dealings with others.