If they vote republican in the primary are they denied voting democrat in the general?
That’s how it works in most states.
Only one ballot in the General Election and that is (supposedly) secret. No way to stop crossover voters in the General.
Plus, people can legitimately change their minds. A lot can happen between now and November.