Be strict about behavior, but permissive about feelings.
Child psychologist Haim Ginott summed up the idea this way: a parent can fully accept a child's emotions while still firmly limiting what the child is allowed to do. The feeling is always welcome; the action is not always allowed.