We should distinguish between means and ends but we should not divide them.
"So don't be too good or too wise! Why destroy yourself? On the other hand, don't be too wicked either. Don't be a fool! Why die before your time? Pay attention to these instructions, for anyone who fears God will avoid both extremes" -The Bible (Ecclesiastes 7:16-18).