LE sell drugs to get convictions all the time, it is called a reverse sting and entrapment is no defense. For entrapment to work LE would need to offer you drugs, you turn them down and then they continually pressure you into buying them. If they offer drugs and you place an order it is not entrapment. In parts of Europe the law is different but in USA reverse stings are common place.