Treat a bicycle the same as you would a car. So you don't pass them and immediately turn causing them to slow down because you wouldn't do that to a car. But if they were on the sidewalk, they were in the wrong already (whether legally required or not, they should be in the street). Regardless, when making a turn you are obligated to yield.