To be legal, the motor needs to be marked as rated at 250w by the manufacturer. If it has that marking, it's legal. There is no law about how much power it can make, nor how much power you can push it to.
It's output power that determines how well a motor drags you up hills. The more power you...