You haven't given us any facts which would explain why the lawyers would be wrong and the immigration officer correct; but we can't independently investigate this and it may be that the immigration officer knows things about the case that we don't.