Discrimination against Bachelor Tenants/ Guests not being allowed.

Hi, My friend and I recently moved into an apartment where the flats are primarily occupied families. Over the weekend we had some friends over for dinner. The following day the secretary of the building who also happens to be our neighbor threatened us by saying they’ll have us evicted if we continue to have guests over and mentioned that the society does not allow tenants to have guests. However, I don’t see them bothering tenants who are families about the same issues. We are constantly scrutinised by the securities. In the agreement there are no clauses mentioning anything about having guests over regardless of the gender. I find this extremely discriminatory and uncomfortable around my own place that I have rented out. We have made heavy investments on the flat and moving out is not an option. We have a lock-in period of 6 months. Not having guests over is also not an option as I believe it’s my fundamental right to do so and no nuisance whatsoever has been caused to others around me. How do I deal with this situation ?