When is cutting a road risk?

Hello, I noticed again and again on motorways, is that many drivers still shortly before the exit to the right in order to get the exit. Now sometimes more space is sometimes less, but from when is it concretely a road danger or coercion and until when is it only an infringement according to the fine catalogue (after the overtaking of other road users hindered) What does the jurisprudence and the handling by authorities say about this? Thank you!