This makes me think of this...hahaha
You made a mistake by not keeping your mouth shut!!! From my own experience, crushes never work. That's why they are called crushes, because it's one sided. Get it?? yeah, once in a million years, he might have the same feelings for you (maybe in Taylor Swift "you belong to me" world") but usually, the smart ones wait and see before they blurt out their feelings towards somebody. Only the dumb ones laid out their cards on the table. Trust me, I learned from experience.
Now, you have perpetuated the streotype that gay guys are always into straight guys and make another straight guy feel awkward around a gay guy. Great! What's worse is that you work together. It's going to be so awkward. I suggest you start looking for another job or prepared to give you "this is guy is so weird" look for a couple of months if forever. He'll probably tell about you behind your back to other co-workers..."Hey, this guy has confessed his feelings to me"
You can't go back to the way things were because you have already changed the game. YOU changed it because you confessed his love to him. It's not the same any more. Stupid! (Sorry for being so blunt and honest). I hope that you appreciate my honesty. How do you like to taste your own medicine!?
"Should I give him space?" Excuse me, are you stupid? he's not your boyfriend. You are not in a relationship with him. Wake up!
Texting him after you have confessed his attraction to him and after he honestly telling you that he's straight and told you NOT to do anything weird. If you continue to text him, it can be unwanted sexual harrasment, you know??