Alameda was in general deeply incompetent. Front running your customers is not all that doable if you insist on using python.
That said they are being accused of something much less sophisticated. They were allowed to take money out when they made money but didn’t have to pay money in when they lost.
…do you see the problem?