If you bloat about you have a honeypot, and INTISE the intruder, then while they hack it you report them, then YES its not legal, its entrapment. But if its there, and you just have it there for whatever means then no. its perfrectly legal.