What’s the Deal With Sam Bankman-Fried’s ‘Advice of Counsel’ Defense

What’s the Deal With Sam Bankman-Fried’s ‘Advice of Counsel’ Defense
And why is it causing so much controversy in court?