How to add max buy to BEP-20

anyone can help me?how to add max buy and sell to my own token, ( anti whale system )

uint256 private anti_whale = num of tokens

Then use require statements in transfer function

require (amount <= anti_whale, 'Tx amount exceeding max amount');

@yakinm100 Please ask more specific questions and provide more detail about the things you've tried and the problems you've run into.