This is **the** case for entrapment. To explain the term, think like this. Would you have committed a crime without the cops influence? If yes then you go to jail. If no then you claim entrapment and it can either mitigate the sentencing or throw it out entirely.