If implementation better techniques and new strategies are required to provide more efficient care and assistance to people, then why is there a statutory ban on amniocentesis?

If implementation of better techniques and new strategies are required to provide more efficient care and assistance to people, then why is there a statutory ban on amniocentesis? Write the use of this technique and give reason to justify the ban.

Amniocentesis is a prenatal diagnostic technique that is used to determine the sex and metabolic disorders of the developing foetus in the mother’s uterus through the observation of the chromosomal patterns. This method was developed so as to determine any kind of genetic disorder present in the foetus.
However, unfortunately, this technique is being misused to detect the sex of the child before birth, and the female foetus is then aborted. Thus, to prevent the increasing female foeticides, it is necessary to ban the usage of amniocentesis technique for determining the sex of a child.