According to the newly revised Criminal Procedure Law, lawyers with three certificates can meet with criminal suspects in the investigation stage and provide them with legal aid, and they can meet with lawyers before the criminal suspects are taken compulsory measures or interrogated for the first time. Non-lawyer defenders can't meet with criminal suspects in the investigation stage, but can only apply for meeting at the stage of examination and prosecution by the procuratorate, and can only meet with the permission of the procuratorate.
As for the family members, it is almost impossible to see the suspects before the trial. The purpose of legislation is mainly based on family members' concern for criminal suspects and other factors, which may help criminal suspects collude or destroy evidence.
I hope my answer is useful to you.