I find it interesting you were breaking the law by smoking “weed” ,by your own admission, but put all the blame on the police who approached you. I’m guessing you were also trespassing on some other persons steps, another violation.
Look at this a different way. If someone you don’t know from your neighborhood came to your front steps and was doing the same thing, don’t you think you would also want those people to leave so that you would feel safer?
It’s a matter of having respect for others. Sure, go have your fun but do it legally and respect other people’s rights and property.