Coin at the edge of the pocket
According to the official ICF rules: 


  71) If a C/m resting perilously at the mouth of the pocket and
  actually falls into the pocket for any reason, it shall be considered
  to have been properly pocketed.


source

So the coin is pocketed.