Here is an interesting mention of a biblical example of lying down with someone of the opposite sex in a situation that could be misconstrued as adultery, while at the same time denying that this biblical example could be used as a justification for indecent behavior:
*** w32 11/15 pp. 343-344 Jehovah's House Desired ***Arriving at the threshing-floor in the field, and seeing Boaz asleep, Ruth came softly and uncovered his feet and lay down. Thus is pictured how those who please God "present their bodies a living sacrifice, wholly acceptable unto God, which is their reasonable service". (Rom. 12:1) There is not one word in the divine record to indicate that there was any sensual or improper desire on the part of Ruth in taking this step as she did. On the contrary, she being a young woman, it must have been a self-denial on her part to thus proceed. In any event, she was carrying out her part of the divine drama and doing what the Lord would have her do.... Without doubt the angel of the Lord was there. If Satan could have had his way at that time he would have had upon the scene some of the outwardly pious and hypocritical clergy to lift their hands in holy horror and call some officer to arrest Ruth and have her dragged before the court charged with adultery and quickly stoned to death. But it was not permitted that Satan or any of his agents should interfere with this great divine drama which God was causing to be enacted to the honor of his own great name...
Any man who would seize upon the events of this divine drama as a justification or excuse for pursuing an indecent or immoral course would show that he has no faith in God and does not believe his Word and has no desire to obey him. There is nothing in God's Word that furnishes any excuse or justification for man or woman to do that which is immoral, improper and wrong.
Here is a similar statement about Samson:
*** w35 12/1 p. 362 Sustaining His Servant ***At Gaza Samson saw a harlot and went in unto her. That was not the only time God has used a harlot woman in making a picture of his purpose. The house of the harlot was a public establishment and was probably the only place that would receive Samson and give him lodging for the night. The fact that Samson is not reproved in his conduct shows that he was at the house of the harlot for a legitimate purpose and in harmony with God's will.... There is no evidence that Samson had sexual intercourse with the harlot or even any conference with her. The words, "And [he] went in unto her," do not necessarily mean that he had relations with her.... Regardless of what the argument may be, and regardless of how human creatures pretend to be shocked at the fact of Samson's spending a night in the house of a harlot, he was there at Jehovah's direction and therefore all presumptions must be indulged in his favor.