If you’re using a “custom form”, you can add this condition to your button block to prevent users from submitting.
However, if you are using a native forum or edit screen, the only way to do this would be to add a hint text that displays when end date is before start date and then use this CSS trick to prevent form submission when that hint text is visible: