The broader question is a bit tricky and has many dimensions. It is probably easiest to go over some of the ground rules.
There are probably other particular issues that could come up, but those are the only ones that occurred to me at the moment.
Caveats and Disclaimers
Also, it is worth noting that the considerations that apply are different in criminal v. non-criminal trials, in the U.S. v. other countries, U.S. state courts v. federal courts, in jury trials v. bench trials, and in the civilian v. military justice systems ("A Few Good Men" is a quasi-criminal U.S. court-martial case under the military justice system without a true jury.) At least to start with, I will limit my answer to civilian criminal jury trials in the United Sates.
At least in practice and interpretation, the United States has lower expectations of lawyers at trial than in many other common law countries. Prosecutors have higher duties to not be deceptive than criminal defense lawyers. There is a greater duty for defendants to disclose information that could be harmful to their case in civil cases (especially in state courts) than in criminal cases. The ethical duties of lawyers regarding candor in bench trials are more complicated because there are some facts that in a jury trial, a judge is allowed to know and consider when making rulings in the case, but a jury is not allowed to know.
Military justice is its own thing with far less formal rules of procedure and deeply different basic assumptions than in trials in civilian courts.
For example, in a military trial, the prosecutor, the defense lawyer, the defendants and the judges are all soldiers who owe heightened duties to the same government and the military mission, relative to participants in a trial in a civilian court, that can take priority over the duties a lawyer owes to his client, or duties of judges to respect due process. A prosecutor is not permitted to advance frivolous and groundless positions for any reason.
Some Notable Rules
Opening Arguments and Offers Of Proof
You are not allowed in an opening argument to a jury in a civilian criminal trial, or in an offer of proof to a judge in support of the validity of questions you would like to ask, to state that you will present evidence later in the case that you do not believe in good faith that you will introduce. You are not required, however, to identify all evidence that you plan to introduce in your opening statement.
But, if you say you will offer up evidence later in the case believing that you will introduce it, and then decide later on that you don't need to and want to offer up that evidence after all, you aren't required to do so.
For example, in a case that I tried not so long ago, both sides had expert witnesses. The other side's expert witness testified first and we got him to say everything that we wanted our expert witness to say in cross-examination. We were also worried that our expert witness might say something that would hurt our case because he understood some complicated facts in the case better than the other side's expert witness who didn't realize that those facts were an issue. So, when it was my turn to present the expert witness (who was supposed to have bee the last witness in the case) that we'd said in opening arguments would testify for several hours, we told the court, "we planned on calling Mr. So and So as an expert witness, but have concluded that his testimony would be cumulative so we conclude our case now," after which the Court immediately moved on to closing arguments which we knew that we'd have to present right away, but the other side expected to have several more hours to think about while our last expert witness testified consistently with his previously disclosed expert witness report for a couple of hours.
What the lawyer did in "A Few Good Men" (which was in substance an "offer of proof" to provide authority for him to ask certain questions) came close to the line of what is permissible in terms of saying that you will introduce evidence when you don't actually plan to do so, but probably didn't cross the line because he didn't say what they would testify to if called. This would be bad form, and it might undermine the lawyer's credibility with the judge not just in this case, but in the long run, but a lawyer could decide as this one did, that this downside was worth it.
Statements About Lying Witnesses
Neither the prosecution lawyer nor the defense lawyer is allowed to say that they know that a particular witness was lying. This is because this turns the lawyer into a witness and puts the lawyer's credibility at issue. This is also because a statement like that can be used to signal to the jury that the lawyer knows something based upon evidence that the jury didn't hear (perhaps because they weren't allowed to hear it) that they should consider when weighing credibility. Numerous felony convictions are overturned every year because a prosecutor told a jury that a witness was lying. These statements are prohibited without regard to whether they are true, false or debatable.
Of course, a lawyer can say, "as you evaluate the credibility of the first witness you heard you should consider the fact that he will avoid a life in prison term and receive a $1,000,000 life insurance policy payout and that the first witness is blind and yet told you the exact color and texture of the sweater that the defendant was wearing even though the first witness doesn't claim to have ever touched that sweater." The lawyer simply isn't allowed to connect the dots and conclude for the jury that therefore, the first witness is lying.
Arguments Based Upon False Inferences
As a general rule, in a civilian criminal jury trial, a defense lawyer is allowed to ask questions in cross-examination and make arguments in closing arguments that are based upon inferences from the evidence that was presented that the defense attorney knows to be false, so long as the factual testimony presented is not known to be false.
For example, the defense lawyer could argue in closing arguments, "the prosecution did not rule out the possibility that Fred Heinz was present at the murder scene, so they haven't ruled out the possibility that Fred Heinz rather than my client committed the murder," even if the defense lawyer happens to know that Fred Heinz was actually on vacation in another country at the time of the murder.
Similarly, a defense lawyer could ask a witness on cross-examination, "Isn't it true that you hide the murder weapon at the requests of your boyfriend and didn't see my client at all that evening?", even if the defense lawyer knows that his client's girlfriend asked the witness to hide the murder weapon and not the witness's boyfriend. The witness of course, would simply answer "no, that isn't true.", but the defense lawyer's question would put the possibility into the heads of the jurors, possibly leading them astray.
(The second example is a little more complicated than that, because the defense lawyer's question is only allowed if there is some foundation established in earlier evidence to show that the boyfriend asked the witness to hide the murder weapon. If not, the prosecutor could object to the question and the judge wouldn't allow the witness to answer it. Whether a defense lawyer can ethically ask a question knowing that it violates the rules of evidence hoping that the prosecution won't object to it and knowing that even if the question is overruled by the judge that it will give the jurors a hint about a possibility that is actually known by the defense lawyer to be false, is somewhat of a gray area.)
Also, a lawyer is absolutely allowed to ask cross-examination questions not knowing what the answer will be, even though that is risky and usually considered to be bad trial practice, and a lawyer is allowed to ask questions that limit a witness to telling an incomplete story that sounds bad, even though the whole story, if told, would not sound so bad, and even if the lawyer knows that the other side won't get an opportunity to tell the whole story for some reason later on.
For example, suppose that the lawyer asks a witness, "you just told the jury that you saw this fight happen?" to which he responds, "yes."
"And, you just have normal vision don't you?"
"Yes."
"But, isn't it true that you were three miles away from the scene of the fight when it happened."
"Yes.
Now that sounds like it really discredits that witnesses testimony, even if the lawyer asking the question and the witness and the prosecutor and the judge all know that the witness saw the fight occur though binoculars from the top of the Empire State Building. Normally, this could get corrected with rebuttal testimony. But, suppose that the defense lawyer offering this cross-examination asked the questions in a dull voice like it was a tedious detail and noticed that the prosecutor had been distracted looking at texts on his phone while the defendant was cross-examining the witness and so didn't notice this line of questioning, and therefore was likely to say, "no further questions, your honor" when the judge asked him if he had any rebuttal testimony he'd like to offer from this witness.
In that situation, the defense lawyer hasn't acted improperly in causing the jury to make a misleading inference from the testimony, and the defense lawyer is allowed in closing arguments to heavily emphasize that the key prosecution witness who says he saw the fight admits that he was three miles away when it happened, knowing that this argument is disingenuous.
Ultimately, a defense lawyer's job is to get the best result possible for their client without violating any relevant ethical rules which are specifically and intentionally relaxed for them relative to other lawyers in some respects regarding advancing frivolous and groundless positions.
A prosecutor, in contrast, has a duty to advance only claims that the prosecutor believes to be supported by probable cause, to not hide exculpatory evidence, and to seek justice rather than having a duty to try to convict and get a maximum sentence without regard to guilt or innocence (in principle even if not all prosecutors act this way).
Testimony And Evidence Know To Be Intentionally False
A lawyer is not permitted to let a witness or his client provide testimony to the court that he knows to be perjured. If his witness starts to commit perjury on the stand, the lawyer has to immediately stop the examination of that witness and discuss the problem with the judge. In many circumstances, the lawyer must correct a knowingly false statement that his witness has provided to the court even if he only learns that the statement was knowingly false after that witness is off the stand if the lawyer learns of this before the jury renders its verdict (or for that matter within the time allowed for post-trial motions).
Gray areas come in when the lawyer doesn't know that the testimony is true or false, and knows that someone is under oath, but also knows that they aren't a very credible person and that the person sometimes lies in important situations, and indeed avoids knowing the truth.
Similarly, gray areas come into play when the lawyer knows that the witness is likely to be mistaken in the testimony that is offered, but knows that the witness is sincerely doing his best to tell the truth on the stand as he understands it to be.
Likewise, a lawyer is not allowed to introduce evidence that he knows to be doctored or forged (i.e. claiming that it is authentic), unless the lawyer explains in the course of introducing the evidence that it is a doctored or forged document and is offering it to show that somebody doctored or forged the document. And, if the lawyer later discovers that the document was doctored or forged before the jury renders its verdict (or within the time allowed for post-trial motions), the lawyer has to tell the court that this happened.
Pre-Trial Disclosures
While the prosecution has a duty to disclose all exculpatory evidence in its possession prior to a trial in a civilian criminal case (something called Brady disclosures), the defense's duty to disclose what evidence it will offer, or what evidence it knows exists, is extremely narrow. There are a couple of kinds of defense strategies (like an alibi defense or a self-defense defense or certain disputes regarding expert testimony) which the defense must disclose that it plans to use at trial, prior to the trial. But, the defense has much more latitude to call surprise witnesses and to introduce surprise evidence at trial than the prosecution does.