Is it legal to commit a felony to catch a felon? i.e: Forcibly manufacture child porn to prove he manufactured child porn.
Happens all the time. For example:
http://www.nydailynews.com/news/crime/fbi-busted-child-porn-...
There are exceptions, it remains to be seen if this is one of them.