How can we limit this and sites like it from doing other's homework assignments?
Asking for help to understand something is fine. It becomes a problem when other people are doing the assignment instead of the student.
Most people on here refuse to answer questions for someone. They might explain how to do it. But besides that it's usually fine.