Interview check first previous round is schedule or not if not then throw error message

i have one job applicant and there name is ‘Rahul’ and Hr schedule Rahul interview but Hr schedule second round but first round is not happen yet so that time can we give error message like ‘Rahul first round not schedule firstly schedule round first’ like that and if first round is schedule but its status is ‘Rejected’ and Hr try to create second round then give error message only allow if previous round status id cleared

how to do in the system anyone have idea

read this.