Even if they are her real parents - it is obvious that they are not in an emotionally stable place, and they are still unmarried - so how will they bring this child up as an unmarried couple?
I feel that the child can go back to her real parents -- but there will have to be some type of long-term monitoring by a social worker or an NGO or the police as to what they are really doing and what is the welfare of the child.
It is not as simple as giving the child and trusting that they will suddenly become good parents who take care of her interests.
In the U.S. once children are adopted there is a social work/family welfare system to monitor the children atleast until they become teens and can speak out for themselves if something is amiss. The social worker may come discreetly to the home and just interact with the parents - look at the child and see whether the child seems happy and healthy and has no bruises - ascertain whether it is delinquent or going to school etc.