let's say you need a warrant to get X.
you use illegal methods to get X without a warrant. but you can't use that information legally. so you use your knowledge of X to find a legal way of learning X, after the fact.
then you go to the courts saying you found X the legal way.
but you didn't.