Overapplied AR Receipts

Hi all

Can anyone advise how you prevent a user from over-applying an AR receipt?  and secondly, if a receipt has been overapplied how do you reverse it?

Thanks