Raising the question when AI will not be so utterly gullible anymore. If they can "understand" (whatever that means for an AI) complex code, they should be able to recognize an intent like in the mentioned example.
Without an answer to this it is impossible to answer your question with anything other than a vague guess.
We have no idea whatsoever how LLMs can seem to behave intelligently. Therefore making analogies with how we behave intelligently (a thing we also do not deeply understand) is not going to tell you anything.