Although both things determine the way you act and take decisions, rules are imposed from the outside and must be obeyed to avoid incurring some kind of penalty (a punishment, a fine, a layoff, a season in jail, etc.) whereas principles are internal, and force you to do what you think it is right or correct.