An adoption order must not be made if the court considers that it is being sought primarily as a means of evading the operation of a law of the Commonwealth relating to immigration.