Yes, Jim's right. This silly, arcane law makes your itineraries illegal.
Here's just how silly it is: Last year we were sailing from Ensenada to Hawaii. We spent a couple days in San Diego first, and on sailing day we went to the airport to meet relatives who would be sailing with us, and to catch the shuttle to Ensenada. As we drove to the airport to drop off the rental car, we saw our ship leaving San Diego harbor and heading for Ensenada to pick us up. It had disgorged in San Diego (apparently having made its distant foreign stop earlier in that cruise), and was forced to schlep down the road to pick us up, and Celebrity had to arrange for enough busses to carry a shipload of people down there in order to execute this ludicrous fire drill.