Originally praise - from 《礼记·大学》: 君子无所不用其极, meaning a noble person 'leaves no effort unspent' in self-cultivation. Modern Chinese flipped the connotation entirely.
mistakes
Today this is almost always negative - describing immoral or extreme tactics. Don't use it as a compliment for hard work; use 全力以赴 instead.