Rules in a condominium aren't just a bunch of words on a piece of paper and to be taken lightly, they are legally binding as they are voted on by the owners. There are many rules in a condominium, but they can vary from building to building depending on how the owners wish to live, it's the owners, to be totally accurate, it's the majority of the owners who decide what the rules are, not necessarily all will agree.
If you break a rule, usually you are given a warning to correct the problem or to not do it again. If it persists, legal action can be taken and it can be costly and time consuming.