Then how about a cop who is working 'undercover,' who gives a false name and false occupation in order to catch a drug pusher?
What about law enforcement, which can always, without limit or repercussion, legally lie to you to catch you in a lie that they can then legally use to convict you...of lying to them?
"It is never right to do wrong."
I have a problems with typical "undercover" work done by law enforcement. More often their deception become deceit, and one who crosses that line is no better than any criminal. The ends never justify the means, no matter the situation. If one must be deceitful, that is evil.
There is a huge chasm between deceiving and being deceitful.
Sometimes God deceives, but is never deceitful - for example the prophets of Israel had taken idols "into their hearts." God states: " 9And if the prophet is deceived and speaks a word, I, the LORD, have deceived that prophet, and I will stretch out my hand against him and will destroy him from the midst of my people Israel."
God allows and even deceives those who turn away from Him that they reap what they sow.
A NT example may be that the statement by Paul that God uses the foolish and weak to confound the wise and mighty and as in 2 Thessalonians 2, "11For this reason, God will send them a powerful delusion so that they will believe the lie, 12in order that judgment will come upon all who have disbelieved the truth and delighted in wickedness."
HOWEVER, God NEVER is deceitful.
There are dozens of verses declaring God despising and disposing those who are deceitful - that God cannot be deceitful.
It is never right to do wrong is. a principle of the Scriptures.