There are rules regulating conducts of advocates. The rules of conduct prohibit lawyers to do anything which puts a lawyer himself into positions of a witness.
There are laws taking actions against anyone who tries to influence prosecution witnesses.
The defence lawyer can cross-examine prosecution witnesses in court.
But it is not permitted to him to talk to other side witnesses or parties outside court.
This is criminal offence of interfering with administration of Justice.
It also comes under contempt of courts Act.
Haresh Raichura
1115