My ex gave me a gaming laptop about six and a half months ago. He told me straight ward that he was giving me the laptop. I even offered money to him for it and he denied it. Now he's saying he needs it to do work and he only let me "borrow" it, not have it. But he literally told me he was giving it to me because he never used it, and I've put money into modifying it. I've added ram, storage, etc. I don't think I should be giving back something that was given to me and that I've literally put my money into. Does he have any legal bases to take it back?

Also, to make this clear.. He did gift me the laptop, that's why he didn't accept my money when I offered.