Lay down the rules. Then you have to follow them. You can't expect a child to follow rules if you don't. If you say "don't do this or you will be punished" and then don't deliver punishment when they do, expect constant trouble.