I don't think this is illegal as all, as you are meeting the requirements of each ticket individually.
Also, I have done this over a dozen times last year (long business trip over a 2 week period, so I fly to visit someone during the weekend off in the middle) and have never had a problem or anyone even mention it.