body: Suppose someone does something you don't like but isn't illegal. Can you 
  (a prosecutor) prosecute them for something illegal with probable cause not because of their illegal action but because of the legal action you didn't like? Does this fall under abuse of process? Is it against the due process doctrine as the defendant isn't actually being punished for what they're being punished for on paper? Is it at least against a prosecutorial code of conduct? If so, how seriously are such codes of conduct taken?
  
  
  Example: Suppose someone cheated on their wife, can they be prosecuted for the possession of marijuana if the reason that the prosecutor is prosecuting them is the cheating?
  
  
  
title: Is it legal to prosecute someone for ulterior motives in the US?