Stop when your body has had enough. There is no sense in pushing it. When you have worked out for a considerable time, your body will start giving you signals.
Heed those signals. This is particularly true in the initial stages. Take one step at a time. Stop when you are out of breath or when a certain part of your body tells you that it has had enough.