However I was also taught that prosecution under this scenario is merely speculation and has never been done in our nations history. It is uncharted territory for the lack of a better word.
The same sort of law existed in ancient Rome. It's one of the elements that helped destroy the republic. Opponents would charge their political enemies with crimes knowing they would be prosecuted upon leaving office.