Trying to build an electric bike to a fixed budget is very tricky. Sure, it can be done, but you may end up with a bike you don't want to ride, or worse, as D8veh said, is dangerous. If your ideal components exceed your budget, then you start to make compromises and every one takes you further away from what you set out to build.