A lawyer is obligated to accurately 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 also 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 asis not so misleading, as a whole, that it is likely to lead the jury astray.
In this case, the prosecutor is alluding, with poetic license, to the idea that an aggressor or interloper can't assert self-defense. You can't "look for trouble" and then be shielded by that doctrine. A more full quote from that prosecutor makes that more clear:
you lose the right to self-defence when you’re the one who brought the gun, when you’re the one creating the danger, when you’re the one provoking other people
I have no opinion concerning whether his statement does or does not cross the line. I'm not sufficiently immersed in the case, and don't have enough context from having heard the closing arguments as a whole, to have a confident opinion on that point. If there is an acquittal we'll never know. If there is a conviction and appeal and this is an issue raised on appeal, we might find out.
Opposing counsel has a right to object in closing argument if it goes too 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 their initial closing, rebutting it in the defense closing may be more effective than objecting. But, if a prosecutionthe prosecutor 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.