While not illegal, intentionally skipping segments on an itinerary does almost always violates airlines' contracts of carriage. For example, American's contract of carriage says this: Reservations made to exploit or circumvent fare and ticket rules are prohibited.