Thats very normal to have brown discharge right before, and right after. Its old blood. Sometimes youll get it, sometimes you wont.
I used to do that all the time. It's your body getting ready to old dried blood I even did it in the middle of my period. I asked my Dr. about it and she said it's completely normal.