It's the very nature of the verb mean itself that allows for this kind of sentence. In fact, when used in this way it is very similar to the verb wish. You can also say I'll do you no harm.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.