Hello,
1. If user tries to open the already opened InfoPath form then it will give the message like "another user has open form".
2. For this you have to lock the document while opening the form and after submitting the form you have to unlock that document.
Above two cases opening the opened form you have to shift to read only view or do not show the buttons for that form.