The court, in its judgment, may, if it deems it advisable, restrict and qualify the rights of a minor relieved from the disabilities of nonage, as to acquittances to and contracts with guardians, executors, administrators, trustees and other persons indebted to such minor, to such an extent as to the court may seem proper in each particular case.