Why doctors are prohibited to do sex determination through ultrasound scanning for pregnant women?

Why doctors are prohibited to do sex determination through ultrasound scanning for pregnant women ?
A. Knowing the sex of foetus inside mother’s womb is a severe crime as per the act made by government. Ultrasound tests are mend to know the growing condition of the foetus and also to see whether it is suffering with severe ailments. By knowing the sex of the foetus, if it is female, people are ready for aborting it. This leads to reduction in male female ratio in the country. That’s why doctors are prohibited to do sex determination through ultrasound scanning for pregnant women.