ive done that a couple of times
at first me and my dad (who built the thing to raise the bed) built the stand so high the bed would hit the ceiling before going all the way up. after we cut it off a bit, it fit, but it was too high. ended up cutting it a 3rd and final time. works fine now