Is it safe to freeze ground beef one day before its expiration date? I ended up buying some ground beef that was 50% off, I left it in the refrigerator one day, and now when I was cutting it into 500g (1.1 pound) pieces to freeze, I noticed that it was only one day to the expiration date. 

Could it still be frozen and be okay after two weeks? I heard if I cook it first, it can be stored for longer, is that something I have to do? and how long can it be stored?

P.S. I'm very worried about getting food poisoning, and I don't want to throw it away since I currently haven't a good budget.
It's fine to freeze, no need to cook if you don't want to; just be sure to use it immediately after thawing.

Freezing things essentially stops the clock: food will stay just as safe to eat no matter how long it's frozen. It can deteriorate but it's more about drying out (freezer burn), taking on odors, and so on, not safety. So since it's safe right now, it'll be safe frozen.