this should not be allowed

thats not entrapment (I believe), if he told you that he wouldn’t arrest you for doing so, and then did… then it would be entrapment.