This might be a silly question, but what sort of trousers do you wear when riding your bike?
There has to be a reason why your chain keeps coming off. Is the derailleur putting the correct tension on the chain? (You said the chain comes off mostly in the higher gears, or small cogs where the...