Police Harassment

Respected Law expert, Context: Having tried for couple of years to seek a good job with commerce degree and not finding any suitable one, my cousin has now bought a car to drive in ola and uber. It is currently a private registered vehicle and he is trying to get it converted to commercial vehicle which then can be attached to taxi majors. In the meantime for his bread and butter he is driving it locally like a sharing taxi. A couple of days before on a bus stop as usual he was asking passengers "chal rahe ho kya" A lady (who was looking illiterate from appearance)standing there with his brother took it wrong and thought if my cousin is trying to molest her. She and her brother statrted beating my cousin. There was a "she team police" jeap standing nearby who saw this and came to the spot. The girl started putting wrong allegations on my cousin upon which he tried to defend but unfortunately the police did not agree and took him to police station and started harassing. My brother fortunately saw a lady constable whom he had dropped once from one bus stop to other. He sought help from the lady constable. She said to her colleagues I know this guy don't put any big case on him. The police called me from his mobile and asked me to come to police station. I went there and tried to convince them but no luck. The police took mobile, car and adhar card of my cousin and took his finger print, photo and then booked some case (pitty case), took a letter from me that I am taking him back home and will bring him back tomorrow for court proceedings. The next day they took him to court and imposed chalan. after coming back from court they said we need to come to commissioner office on Saturday for counseling along with wife or mother then they will return his belongings. As ordered on Saturday he went to commissioner office, there these police men took him in front of commissioner and asked to confess for the crime which he had not done. When he started narrating the whole scenario police men started beating him and said he need to confess to the crime. He forciblly had to confess to save from Harassment. Later after coming out when my brother asked for his belongings the ASI asked for bribe. Finally after sometime he returned all things. This all happened for a crime which he never committed but was forcefully dragged into. We know he was innocent but couldn't do anything. This may happen to anybody (in particular who is least aware of laws). I have full respect for girls and for the initiative by police like She team but what if this all happens with misunderstanding. Police hardly listens to innocent male when female complaints: ( Question: How can we get out of such situations? Will these police men harass my cousin in future ?