1- Create a label type Question
2- type something like "Error entry - Date order is incorrect" or whatever error message you want to show
3- have a hidden calculation that counts the difference in days between the two dates like described above. call it, date_difference
4- in the validation field of the label type question from step 1, put "False()"
5- in the display condition of the same question from step 1, put something like "date_difference > 6"
6- save your form and release a new version of your app
7- enjoy
you can change the condition in the display conditions of the question in step 1 (label) and do whatever you want with that. if you get a negative number in the date_difference calculation, then it means the order is wrong. if you get a zero, then it's the same date. you can have different messages that show up for different conditions. just add new label type questions and repeat those steps.
if the label doesn't show up, the validation condition won't apply on the form and it won't cause an error preventing you from submitting the form. so you'll be ok if the conditions are not met.