Jews are or have been persecuted in all middle eastern countries. What would happen if they were a minority in a democratic state in the Middle East? Why would it be different than in the other democracies in the Middle East?
Laws like these lower the probability of Jews becoming a minority in Israel. Do you think the probability of them becoming a minority is zero? And the probability of them being persecuted provided they become a minority is zero? Unless you think both probabilities are very low you must understand their concerns.
You may agree with their concerns or not, I don't, but this is what must be addressed when criticizing these laws. Saying this is apartheid means nothing because the situation is not analogous.