matrix_basis isn't affected correctly
matrix_basis only supports valid transform matrices - not a specialist, but by the look of it your m looks more like a shearing one?

Note that internally, there is no matrix_basis at all, Blender only stores translation/rotation/scaling separately, and converts them to/from RNA's matrix_basis. So if a matrix cannot be represented by a translation, rotation and scaling, then you cannot expect it to work.