Stop followed by infinitive means to stop and start doing another thing, such as
Please stop and do your homework.
Please stop and do your homework.
Stop is followed by the present participle form of the verb, which means to stop what you are doing, such as
Please stop doing your homework.
Don't do your homework (meaning stop to have a rest or help with other things, etc.) ).