To what extent is academic "doping" acceptable?

Or they get caught before they graduate and get expelled. Or have to take a semseter or year off to fight the case. Or can’t continue because they’ve been jailed. It’s hard to guess the risk.