A lawyer is obligated to accurate state the law as stated in the jury instructions in closing argument (and also not to make a clear and deliberate misstatement of the facts presented at trials and not to express personal knowledge of the facts based upon anything other than what the jury has seen).
But a certain amount of poetic license is allowed so long as the closing argument as not so misleading, as a whole, that it is likely to lead the jury astray.
Opposing counsel has a right to object in closing argument if it goes to far, and appealing an argument that a closing argument is objectionable is challenging unless it is preserved with a timely objection at the time. Particularly if the prosecution makes a misstatement in there initial closing, rebutting it in the defense closing may be more effective than objecting. But, if a prosecution makes a misstatement in a rebuttal period to which the defense can't offer a corrective statement, an objection may be wise in order to preserve an issue for appeal.