First, how do you control your feelings? You find the balance. Let me explain.
It seems fairly clear that this guy is not interested in you as a woman, but he does notice you as a colleague. It is quite OK to like him, but the way to find the balance so that you do not make a fool of yourself is to find a good trait for every bad trait that you see in him, and the other way round. At the moment you seem to focus on his good traits and that results in you putting him on a pedestal. This is a sure way to invite being hurt by him.
Once you have a view of him that puts him neither on a pedestal nor in a pit, you will feel different about his criticism. When your emotions no longer blind you to his bad traits, you will be in a better position to decide whether his criticism is valid. Where he does have a point, you will not feel so vulnerable, and you will be able to take his advice. However, where he is criticizing you because he is feeding his own ego, you will be able to give his criticism right back to him without feeling embarrassed.
To read more about dealing with relationship issues: