This is more of a question for @goodqueenaly, but I’ll take a first stab at it.
Normally, it’s not ok. This is why morganatic marriages exist, and why those few royals who did marry downwards usually ennobled their intended before the wedding (I’m thinking of Henry VIII making Anne Boleyn the Marquess of Pembroke prior to their marriage).