Implantation or spotting

How do you know if it’s spotting for your period or if it’s implantation bleeding ?