So definitely this is a tricky one. Yes definitely In india adultery is punishable under section 497 of indian penal code and there is an imprisonment of five years or with fine or with both. You are liable for prosecution if you are found in the hotel room together. Whether it is by a police raid or otherwise - if you both are found under scenario you are liable to be punished. Here are the possible conditions whether you are eligible for punishment -
If you are a single male dating/fornicating with a married woman yes you are eligible for legal punishment and so is she.
If you are a married male dating/fornicating with a married woman yes you are eligible for punishment and so is she.
However there is no law for punishing a single women having sex with a married male, while the married male is eligible for punishment.
Many bookings come to StayUncle and we are unaware of the marital status, many bookings like that might probably happen but Uncle does not take responsibility for these scenarios as your dating partner are solely your choice and you know what you are getting into as conscious adults. That is a situation you would have to handle yourself.
Now as far as police raids go - Police only raids shady low budget hotels and that too if you are not registered in the hotel guest book. You need to present a valid govt ID of yourself and your partner's in original at the time of checkin and have yourself legally registered in the guest book. If you don't do that, it gives the police a reason to check whether you are hiding something or is the hotel hiding something. The police on a standard routine basis checks the hotel guest books and no hotel can deny that. It is policy and standard procedure that is followed by hotels across the country. To raid a hotel the police requires a written permission by authorities.
Whether getting caught by police or not, the marital situation is something that Uncle cannot interfere in as that is the law. The booking will be at your own risk.
Hope this has cleared your doubts.