What's the difference between "do to" and "do with"? I often find the verb "do" followed by "to" and by "with" as well. But I can't make out the difference between their usage. Are they interchangeable to use?
this is definitely different to when you:
In the first case, whatever you are doing is directly impacting the person/object you are doing it to, whereas in the second case you are just doing whatever you are doing in collaboration with (or in proximity to) the person/object.
"What would you do with a person behaving like this?"
means "How would you treat / handle them?" or "How would you try to get them to behave more reasonably?"
Here, replacing 'with' with 'to' sounds like a call for serious retribution.
Another sense is shown in a later ELU question:
"You may have stolen my heart, but you'll never do that with my smile."
or in a closer but stodgier rewrite
"You may have stolen my heart, something you'll never do with my smile."
' ... do with' here means 'carry out the [repeat] process' / 'succeed in doing'.
'With' sounds better than 'to' here as one doesn't say "What did the burglars do to the papers they found in the safe?"