To do something wrong, so that one ruins it or it does not go the way one has planned.
Not to be able to achieve what one wanted or pursued.