don't go out and...

1) Don't go out of the house leaving the front door open.
2) Don't go out of the house and leave the front door open.
These sentences are supposed to mean: If you go out of the house, close
the front door.

3) Don't have an affair breaking your wife's heart.
4) Don't have an affair and break your wife's heart.
These two are supposed to mean: Don't have an affair. If you do, you will
break your wife's heart.

Do the sentences 1-4 work with the intended meanings?
Do they need commas?


Original Post