Entrapment: I understand: you make trap for people to see who will fall in the trap!?
If this is it: then it is the deception .. i.e. you enhance people to commit the wrong act, then you come and punish them .. this is not correct, unfair and non-moral.
Therefore, spying on people, and pursuing the faults of people so as to expose them; this is condemned.
=================================================================
A narrated traditional story:
Caliph Omar used to go by night, to see the condition of people.
One day, he passed by a house: and heard the sounds of laughter, rapture and the drums, so he jumped from the window, and said to the men there: You will be punished for your wine drinking.
The man of the house answered him: If we have committed one wrong act, you yourself have committed three forbidden acts!
Omar said: How is this?
The man said:
1- You came from the window, while God said: Come to houses by the door.
2- You came without asking permission of the people of the house, while God said: You should not go into houses unless you ask permission of the people of the house.
3- You came into the house without saying: Salam to you; while God forbid that you come into the house unless you ask permission and salute the people of the house.
I add to these three conditions, two other points:
4- people should not spy on each other
As God forbids it in the
Quran 49: 12, which means:
{
And do not spy d}
...............................................................
d i.e. do not seek after the flaws and defects of Muslims; because anyone who seeks after the flaws and defects of Muslims to expose them, God will expose him even in his family.
5- God - be glorified - said in the
Quran 17: 36, which means:
{
And do not go after the [flaws of your Muslim brother j j] about which you [man] have no knowledge; for the hearing, the sight and the [spiritual] heart k k, of all these it shall be inquired.}
.............................................................
36
j j So as to expose him; but O Muslim, cover the flaws of your Muslim brother and don’t expose him.
This is like His saying – be glorified – in the Quran 49: 12, which means:
(and do not spy [i.e. do not seek after the flaws and defects of Muslims; because anyone who seeks after the flaws and defects of Muslims to expose them, God will expose him even in his family.]
nor let some of you backbite others [i.e. do not mention anyone of you, when he is absent, with something he dislikes.] )
36
k k The ‘hearing’, the ‘sight’ and the ‘[spiritual] heart’; all these are the special senses of the soul
The meaning: It is the soul that will be judged and questioned on Judgment Day, not the body. And I have explained about the special senses of the soul in my book Man after Death
http://quran-ayat.com/pret/17.htm#a17_36