The second case is criminal detention. A criminal suspect may hire a lawyer to provide legal advice and represent his complaint and accusation after the first interrogation by the investigation organ or the day when compulsory measures are taken. If the suspect is arrested, the lawyer hired can apply for bail pending trial. No one else can come.
You can entrust a lawyer to visit you then. No one else can come to see you. Remember.