I always feed just before sleep. My experience has been if my bubs were stimulated before sleep with 'play time', then they would not settle.
So, my 'routine' for my 4mth old DD is- baby wakes up, bottle feed, awake time (not more than 2 hrs), bottle feed, burp, put in bed awake, I walk out, baby goes to sleep.
(Note: I don't recall having any probs with my DS1 and DS2 who always had a bottle after their solids dinner and before bed. This continued until we got rid of the before bed bottle at about 18 months of age. That was the last bottle feed to go.)