I am definitely in agreement with what others have said here. This person has no respect for you or your boundaries. What if they got that edible from someone and it had a dangerous drug in it that they didn't know about,(mary jane and THC products are sometimes laced with other things) before giving it to you trying to kid around and the worst ended up happening? Not trying to scare you as I think in this case you will be fine, but drugs are not something to play around with, much less putting up with someone who you know does them and is trying to give you something you are suspicious of that you are not familiar with. This is the same kind of personality that probably would not hesitate to put a roofie in someone's drink.
Let this be a lesson, and never take anything from someone, especially food and drink items that are open, even if it's from a good friend, especially in a public place. I once read of a situation where a woman was friends with someone for almost 10 years and they were out starting to date....she apparently went to the bathroom and before she came back, someone warned her that they saw him spike her drink, with what was obviously a date rape drug. She was flabbergasted saying she knew him for years. The police were obviously called. What this person essentially did was a drug you to an extent with out your own consent which is a crime.
"edibles" are a common form of taking in THC and in most "bad trips" there can be bouts of panic and paranoia and altered senses. This wears off, just be sure to take in some vitamin C and stay hydrated. Sweating helps you detox and it should be flushed out of your system after about two weeks at most, and you will be fine.
Disconnect from this person irreversibly and anyone else you know that is close to you and does drugs. They are a bad influence.