You are absolutely right that it is usually against the rules. Some programs (not airlines, of course) have certain provisions whereby they will let you double or in some cases triple dip on the points. Obviously in those programs it is not a violation, but I know that would be considered such in the airline programs.
My curiosity about the forbidden sometimes leads me to places where one ought not go.