It seems like going to court and saying "yeah the lead investigator for this case just happened to stumble upon what appeared to be a shipment of watermelons bound for the local Stop & Shop, and decided they looked suspicious. After a full body cavity search of the driver, and a thorough search of the contents of each of the 742 watermelons, a small bag of marijuana was recovered" when in fact the reason for the search wasn't "suspicious looking watermelon shipment", but rather "3-letter organization tipped us off, one of their interns stumbled upon it while casually perusing some cell phone recordings over lunch" is certainly perjury and patently illegal.