Hi Jammy,
Use customized algorithm 901 to control first case. You can manage with value date and Amount of Payment document should be match with check date and amount of the document.
It might be possible other criteria also.
Read below mentioned thread it might be helpful